iOS: find system.db pointed by pEpiOSAdapter as an external
authorEdouard Tisserant
Mon, 02 Nov 2015 21:02:44 +0100
changeset 3802e4c5a2e752c
parent 379 a0fdbe575de1
child 381 87e3895c327f
iOS: find system.db pointed by pEpiOSAdapter as an external
src/platform_unix.h
     1.1 --- a/src/platform_unix.h	Wed Oct 28 20:13:47 2015 +0100
     1.2 +++ b/src/platform_unix.h	Mon Nov 02 21:02:44 2015 +0100
     1.3 @@ -14,12 +14,22 @@
     1.4  const char *gpg_home(void);
     1.5  
     1.6  #ifdef ANDROID
     1.7 +
     1.8  char *stpncpy(char *, const char *, size_t);
     1.9  char *stpcpy(char *, const char *);
    1.10  long int random(void);
    1.11  const char *android_system_db(void);
    1.12  #define SYSTEM_DB android_system_db()
    1.13  #define LIBGPGME "libgpgme.so"
    1.14 +
    1.15 +#elif __APPLE__
    1.16 +#include "TargetConditionals.h"
    1.17 +#if TARGET_OS_IPHONE
    1.18 +
    1.19 +extern char* SystemDB;
    1.20 +#define SYSTEM_DB SystemDB
    1.21 +    
    1.22 +#endif
    1.23  #endif
    1.24  
    1.25  #ifdef __cplusplus