src/platform_unix.h
author Edouard Tisserant
Mon, 02 Nov 2015 21:02:44 +0100
changeset 380 2e4c5a2e752c
parent 348 878bbf6a42c5
child 438 106b9765559d
permissions -rw-r--r--
iOS: find system.db pointed by pEpiOSAdapter as an external
     1 #define _POSIX_C_SOURCE 200809L
     2 
     3 #include <unistd.h>
     4 #include <strings.h>
     5 #include <sys/select.h>
     6 
     7 #ifdef __cplusplus
     8 extern "C" {
     9 #endif
    10 
    11 const char *unix_local_db(void);
    12 
    13 const char *gpg_conf(void);
    14 const char *gpg_home(void);
    15 
    16 #ifdef ANDROID
    17 
    18 char *stpncpy(char *, const char *, size_t);
    19 char *stpcpy(char *, const char *);
    20 long int random(void);
    21 const char *android_system_db(void);
    22 #define SYSTEM_DB android_system_db()
    23 #define LIBGPGME "libgpgme.so"
    24 
    25 #elif __APPLE__
    26 #include "TargetConditionals.h"
    27 #if TARGET_OS_IPHONE
    28 
    29 extern char* SystemDB;
    30 #define SYSTEM_DB SystemDB
    31     
    32 #endif
    33 #endif
    34 
    35 #ifdef __cplusplus
    36 }
    37 #endif