Skip to content

Commit 3a5bcc4

Browse files
committed
fix: fix syntax
1 parent 75694eb commit 3a5bcc4

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

device/libcamera/options.cc

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -233,8 +233,8 @@ static int libcamera_device_dump_control_option(device_option_fn fn, void *opaqu
233233
opt.type = device_option_type_string;
234234
break;
235235

236-
#if LIBCAMERA_VERSION_MAJOR > 0 ||
237-
LIBCAMERA_VERSION_MAJOR == 0 && LIBCAMERA_VERSION_MINOR > 3 ||
236+
#if LIBCAMERA_VERSION_MAJOR > 0 || \
237+
LIBCAMERA_VERSION_MAJOR == 0 && LIBCAMERA_VERSION_MINOR > 3 || \
238238
LIBCAMERA_VERSION_MAJOR == 0 && LIBCAMERA_VERSION_MINOR == 3 && LIBCAMERA_VERSION_PATCH >= 2 // Support for older libcamera versions
239239
case libcamera::ControlTypePoint:
240240
opt.type = device_option_type_float;
@@ -385,8 +385,8 @@ static std::pair<libcamera::Size, const char*> libcamera_parse_size(const char *
385385
return std::make_pair(libcamera::Size(), (const char*)NULL);
386386
}
387387

388-
#if LIBCAMERA_VERSION_MAJOR > 0 ||
389-
LIBCAMERA_VERSION_MAJOR == 0 && LIBCAMERA_VERSION_MINOR > 3 ||
388+
#if LIBCAMERA_VERSION_MAJOR > 0 || \
389+
LIBCAMERA_VERSION_MAJOR == 0 && LIBCAMERA_VERSION_MINOR > 3 || \
390390
LIBCAMERA_VERSION_MAJOR == 0 && LIBCAMERA_VERSION_MINOR == 3 && LIBCAMERA_VERSION_PATCH >= 2 // Support for older libcamera versions
391391
{
392392
static const char *POINT_PATTERNS[] =
@@ -496,8 +496,8 @@ int libcamera_device_set_option(device_t *dev, const char *keyp, const char *val
496496
case libcamera::ControlTypeString:
497497
break;
498498

499-
#if LIBCAMERA_VERSION_MAJOR > 0 ||
500-
LIBCAMERA_VERSION_MAJOR == 0 && LIBCAMERA_VERSION_MINOR > 3 ||
499+
#if LIBCAMERA_VERSION_MAJOR > 0 || \
500+
LIBCAMERA_VERSION_MAJOR == 0 && LIBCAMERA_VERSION_MINOR > 3 || \
501501
LIBCAMERA_VERSION_MAJOR == 0 && LIBCAMERA_VERSION_MINOR == 3 && LIBCAMERA_VERSION_PATCH >= 2 // Support for older libcamera versions
502502
case libcamera::ControlTypePoint:
503503
libcamera_parse_control_value<libcamera::Point>(

0 commit comments

Comments
 (0)