GNUmakefile: compile enet.cpp only if NETCODE!=0.
Background: gcc (Raspbian 8.3.0-6+rpi1) 8.3.0 I'm getting a missing compiler-provided symbol: /usr/bin/ld: obj/build/enet.o: in function `enet_time_get': source/build/include/enet.h:4948: undefined reference to `__atomic_load_8' /usr/bin/ld: source/build/include/enet.h:4958: undefined reference to `__atomic_compare_exchange_8' collect2: error: ld returned 1 exit status so have a means of omitting the object file when it is not actually needed.
Showing with 3 additions and 1 deletion
Compilation will now fail with
Sorry for breaking the Windows  build. Could you try MR !61 and see if that fixes it?
 or rather, any platform for which this holds, from
#if defined _WIN32 || __APPLE__ && __MAC_OS_X_VERSION_MIN_REQUIRED < 101200 extern int enet_gettime(int X, struct timespec *tv);
Yes that solves the problem for me.