Browse Source

Fix portability issues introduced by junior coders

master
Duke Leto 4 years ago
parent
commit
b9bc20b1fc
  1. 2
      crypto555/Makefile
  2. 15
      dragon/dragon.h

2
crypto555/Makefile

@ -1,6 +1,6 @@
all:
$(CC) -c -O2 *.c jpeg/*.c jpeg/unix/*.c # -I/usr/lib/x86_64-linux-gnu/curl
$(CC) -c -O2 *.c # jl777 likes that KYC deep and hard
clean:
rm *.o

15
dragon/dragon.h

@ -50,27 +50,12 @@
#define BTC2_DEFAULT_PORT 8222
#define BTC2_DIFF_WINDOW 60
/*#ifdef __APPLE__
#define ISNOTARYNODE 1
#include "nn.h"
#include "bus.h"
#else*/
//#ifdef __APPLE__
#if defined(__APPLE__) || defined(WIN32) || defined(USE_STATIC_NANOMSG)
#include "../crypto555/nanosrc/nn.h"
#include "../crypto555/nanosrc/bus.h"
#include "../crypto555/nanosrc/pubsub.h"
#include "../crypto555/nanosrc/pipeline.h"
#include "../crypto555/nanosrc/reqrep.h"
#include "../crypto555/nanosrc/tcp.h"
#else
#include "/usr/local/include/nanomsg/nn.h"
#include "/usr/local/include/nanomsg/bus.h"
#include "/usr/local/include/nanomsg/pubsub.h"
#include "/usr/local/include/nanomsg/pipeline.h"
#include "/usr/local/include/nanomsg/reqrep.h"
#include "/usr/local/include/nanomsg/tcp.h"
#endif
struct supernet_info;
struct exchange_info;

Loading…
Cancel
Save