fixing preprocessor
authorVolker Birk <vb@pep-project.org>
Wed, 29 Apr 2015 14:51:33 +0200
changeset 229313d152239bf
parent 228 4e6728cddb3f
child 231 d862ff6c48c7
fixing preprocessor
src/pEp_internal.h
src/platform_unix.h
     1.1 --- a/src/pEp_internal.h	Wed Apr 29 01:00:59 2015 +0200
     1.2 +++ b/src/pEp_internal.h	Wed Apr 29 14:51:33 2015 +0200
     1.3 @@ -53,7 +53,7 @@
     1.4  
     1.5  #ifdef USE_GPG
     1.6  #include "pgp_gpg_internal.h"
     1.7 -#elif USE_NETPGP
     1.8 +#elif defined(USE_NETPGP)
     1.9  #include "pgp_netpgp_internal.h"
    1.10  #endif
    1.11  
    1.12 @@ -66,7 +66,7 @@
    1.13      const char *version;
    1.14  #ifdef USE_GPG
    1.15      gpgme_ctx_t ctx;
    1.16 -#elif USE_NETPGP
    1.17 +#elif defined(USE_NETPGP)
    1.18      netpgp_t ctx;
    1.19  #endif
    1.20  
     2.1 --- a/src/platform_unix.h	Wed Apr 29 01:00:59 2015 +0200
     2.2 +++ b/src/platform_unix.h	Wed Apr 29 14:51:33 2015 +0200
     2.3 @@ -4,6 +4,10 @@
     2.4  #include <strings.h>
     2.5  #include <sys/select.h>
     2.6  
     2.7 +#ifdef __IPHONE_OS_VERSION_MAX_ALLOWED
     2.8 +#define USE_NETPGP
     2.9 +#endif
    2.10 +
    2.11  #ifdef __cplusplus
    2.12  extern "C" {
    2.13  #endif