juhovh / shairplay

Apple airplay and raop protocol server
Other
1.35k stars 228 forks source link

You recent commit break compilation #70

Closed phirsov closed 6 years ago

phirsov commented 6 years ago

Commit https://github.com/juhovh/shairplay/commit/71b45f8a5ede847fd6aa176d0c550e587b79a3d9 break compilation. Assume, USE_LIBDL macro is not defined, AND ( HAVE_LIBDL is not defined, OR __APPLE__ is defined ). Then, #if defined(WIN32) || USE_LIBDL cause pre-processor error because pre-processor || operator right-hand operand is not defined. Solution? Simple:

#if defined(HAVE_LIBDL) && !defined(__APPLE__)
#define USE_LIBDL 1
#else
#define USE_LIBDL 0
#endif

Best regards

juhovh commented 6 years ago

Thank you for the report and sorry, I pushed that in a bit of a haste, will fix later today.

juhovh commented 6 years ago

Should be fixed now.