From b2e765c2af5fad634bdc2bbb1eb48ccaeb6a509a Mon Sep 17 00:00:00 2001 From: Syping Date: Sat, 11 Feb 2023 20:53:41 +0100 Subject: [PATCH] libragephoto: fix build errors and some includes - RagePhoto-Extract: include stdio.h - RagePhotoC: include stddef.h instead of stdio.h - RagePhotoTypedefs: include stddef.h --- src/RagePhoto-Extract.c | 1 + src/RagePhotoC.h | 2 +- src/RagePhotoTypedefs.h | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/RagePhoto-Extract.c b/src/RagePhoto-Extract.c index c5a9a20..d0a1d22 100644 --- a/src/RagePhoto-Extract.c +++ b/src/RagePhoto-Extract.c @@ -17,6 +17,7 @@ *****************************************************************************/ #include "RagePhotoC.h" +#include int main(int argc, char *argv[]) { diff --git a/src/RagePhotoC.h b/src/RagePhotoC.h index aa36ebf..8a19dfe 100644 --- a/src/RagePhotoC.h +++ b/src/RagePhotoC.h @@ -21,8 +21,8 @@ #include "RagePhotoLibrary.h" #include "RagePhotoTypedefs.h" +#include #include -#include #ifdef LIBRAGEPHOTO_C_NOAPI #error "libragephoto was built without C API" diff --git a/src/RagePhotoTypedefs.h b/src/RagePhotoTypedefs.h index 0657182..c2a6745 100644 --- a/src/RagePhotoTypedefs.h +++ b/src/RagePhotoTypedefs.h @@ -19,6 +19,7 @@ #ifndef RAGEPHOTOTYPEDEFS_H #define RAGEPHOTOTYPEDEFS_H +#include #include #ifdef __cplusplus