Browse Source

allow proper build for macos

Dmitry Boyarintsev 6 years ago
parent
commit
903e2f5b9d
2 changed files with 6 additions and 1 deletions
  1. 5 0
      src/config.inc
  2. 1 1
      src/pascalcoin_wallet_classic.dpr

+ 5 - 0
src/config.inc

@@ -81,7 +81,12 @@ ERROR: You must select ONLY ONE option: PRODUCTION or TESTNET
 ERROR: You must select ONE option!
 {$ENDIF}{$ENDIF}{$ENDIF}{$ENDIF}
 {$IFDEF OPTIONS_BY_DEFAULT}
+  {$ifdef darwin}
+  {$DEFINE Use_CryptoLib4Pascal}
+  {$else}
   {$DEFINE Use_OpenSSL}
+  {$endif}
+
   // By default are: Synapse + OpenSSLv11
   {$IFDEF ANDROID} 
     // Android usage (on Delphi) does not use Synapse

+ 1 - 1
src/pascalcoin_wallet_classic.dpr

@@ -7,7 +7,7 @@ program PascalCoin_Wallet_Classic;
 uses
   {$IFnDEF FPC}
   {$ELSE}
-  {$IFDEF LINUX}
+  {$IFDEF UNIX}
   cthreads,
   {$ENDIF }
   Interfaces,