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
vb@130
     1
#define _POSIX_C_SOURCE 200809L
vb@130
     2
vb@130
     3
#include <unistd.h>
vb@130
     4
#include <strings.h>
vb@130
     5
#include <sys/select.h>
vb@130
     6
vb@130
     7
#ifdef __cplusplus
vb@130
     8
extern "C" {
vb@130
     9
#endif
vb@130
    10
vb@1
    11
const char *unix_local_db(void);
Edouard@347
    12
vb@1
    13
const char *gpg_conf(void);
Edouard@175
    14
const char *gpg_home(void);
vb@130
    15
Edouard@338
    16
#ifdef ANDROID
Edouard@380
    17
Edouard@348
    18
char *stpncpy(char *, const char *, size_t);
Edouard@348
    19
char *stpcpy(char *, const char *);
Edouard@338
    20
long int random(void);
Edouard@348
    21
const char *android_system_db(void);
Edouard@348
    22
#define SYSTEM_DB android_system_db()
Edouard@348
    23
#define LIBGPGME "libgpgme.so"
Edouard@380
    24
Edouard@380
    25
#elif __APPLE__
Edouard@380
    26
#include "TargetConditionals.h"
Edouard@380
    27
#if TARGET_OS_IPHONE
Edouard@380
    28
Edouard@380
    29
extern char* SystemDB;
Edouard@380
    30
#define SYSTEM_DB SystemDB
Edouard@380
    31
    
Edouard@380
    32
#endif
Edouard@338
    33
#endif
Edouard@338
    34
vb@130
    35
#ifdef __cplusplus
vb@130
    36
}
vb@130
    37
#endif