libragephoto: fix build errors and some includes

- RagePhoto-Extract: include stdio.h
- RagePhotoC: include stddef.h instead of stdio.h
- RagePhotoTypedefs: include stddef.h
This commit is contained in:
Syping 2023-02-11 20:53:41 +01:00
parent df388acaec
commit b2e765c2af
3 changed files with 3 additions and 1 deletions

View file

@ -17,6 +17,7 @@
*****************************************************************************/ *****************************************************************************/
#include "RagePhotoC.h" #include "RagePhotoC.h"
#include <stdio.h>
int main(int argc, char *argv[]) int main(int argc, char *argv[])
{ {

View file

@ -21,8 +21,8 @@
#include "RagePhotoLibrary.h" #include "RagePhotoLibrary.h"
#include "RagePhotoTypedefs.h" #include "RagePhotoTypedefs.h"
#include <stddef.h>
#include <stdint.h> #include <stdint.h>
#include <stdio.h>
#ifdef LIBRAGEPHOTO_C_NOAPI #ifdef LIBRAGEPHOTO_C_NOAPI
#error "libragephoto was built without C API" #error "libragephoto was built without C API"

View file

@ -19,6 +19,7 @@
#ifndef RAGEPHOTOTYPEDEFS_H #ifndef RAGEPHOTOTYPEDEFS_H
#define RAGEPHOTOTYPEDEFS_H #define RAGEPHOTOTYPEDEFS_H
#include <stddef.h>
#include <stdint.h> #include <stdint.h>
#ifdef __cplusplus #ifdef __cplusplus