Replace __linux with __linux__
@@ -1,6 +1,6 @@
// alsadevice.cpp
-#ifdef __linux
+#ifdef __linux__
#include "freeaudio.h"
// ossdevice.cpp
@@ -1,7 +1,7 @@
// pulseaudiodevice.cpp
// sudo apt-get install libpulse-dev
@@ -7,7 +7,7 @@
#define HIDECONSOLE 1
#define SHOWCONSOLE 2
-#if __APPLE__ || __linux || __HAIKU__
+#if __APPLE__ || __linux__ || __HAIKU__
#include <sys/ioctl.h>
#include <unistd.h>
@@ -118,7 +118,7 @@ size_t fdProcess( BBString *bbcmd,size_t *procin,size_t *procout,size_t *procerr
//Child process
if (procid==0)
{
- #if __linux
+ #if __linux__
setsid(); //Linux doesn't mind setsid()
#else
setpgid(0,0); //but OS X doesn't like it, therefore resort to using setpgid().
@@ -174,7 +174,7 @@ void* NSGLGetProcAddress (const GLubyte *name)
# define glewGetProcAddress(name) NULL /* TODO */
#elif defined(__native_client__)
-#else /* __linux */
+#else /* __linux__ */
# define glewGetProcAddress(name) (*glXGetProcAddressARB)(name)
#endif
@@ -74,7 +74,7 @@
# define CDROM_GET_CAPABILITY 0x5331
# endif
-#endif /* __linux */
+#endif /* __linux__ */
#ifdef APPLE_DARWIN
@@ -15,7 +15,7 @@
** BRL: Added by Mark - autodetect for linux/macos.
**
*/
-#if __linux
+#if __linux__
#define LUA_USE_LINUX
#elif __APPLE__
#define LUA_USE_MACOSX
@@ -64,7 +64,7 @@ void *GetOpenALFunction( const char *fname ){
#include <dlfcn.h>
@@ -45,7 +45,7 @@
# define PHYSFS_PLATFORM_ANDROID 1
# define PHYSFS_PLATFORM_POSIX 1
# define PHYSFS_NO_CDROM_SUPPORT 1
-#elif defined(__linux)
+#elif defined(__linux__)
# define PHYSFS_PLATFORM_LINUX 1
# define PHYSFS_PLATFORM_UNIX 1