diff --git a/libgphoto2_port/libgphoto2_port/compiletime-assert.h b/libgphoto2_port/libgphoto2_port/compiletime-assert.h index 4c046e76e..146061434 100644 --- a/libgphoto2_port/libgphoto2_port/compiletime-assert.h +++ b/libgphoto2_port/libgphoto2_port/compiletime-assert.h @@ -35,6 +35,11 @@ #include +/* needed for older Macs https://github.com/gphoto/libgphoto2/issues/1145 */ +#ifndef static_assert +#define static_assert _Static_assert +#endif + /** Compiletime assertion for use inside a function. */ #define COMPILETIME_ASSERT(CONDITION) \ static_assert((CONDITION), #CONDITION)