Fix for iOS build
authorEdouard Tisserant
Fri, 03 Jul 2015 14:33:43 +0200
changeset 3315ddf7c537b05
parent 329 27daa4a5abc4
child 332 f77065325248
Fix for iOS build
src/cryptotech.c
src/platform_unix.h
     1.1 --- a/src/cryptotech.c	Sun Jun 28 13:45:30 2015 +0200
     1.2 +++ b/src/cryptotech.c	Fri Jul 03 14:33:43 2015 +0200
     1.3 @@ -2,9 +2,12 @@
     1.4  
     1.5  #ifdef USE_GPG
     1.6  #include "pgp_gpg.h"
     1.7 -#elif USE_NETPGP
     1.8 +#else
     1.9 +#ifdef USE_NETPGP
    1.10  #include "pgp_netpgp.h"
    1.11  #endif
    1.12 +#endif
    1.13 +
    1.14  
    1.15  #include <stdlib.h>
    1.16  #include <memory.h>
     2.1 --- a/src/platform_unix.h	Sun Jun 28 13:45:30 2015 +0200
     2.2 +++ b/src/platform_unix.h	Fri Jul 03 14:33:43 2015 +0200
     2.3 @@ -4,10 +4,6 @@
     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