Browse Source

Merge pull request #52 from GWRon/fix_linuxmacro

Replace __linux with __linux__
Brucey 2 years ago
parent
commit
2ba38b5995

+ 1 - 1
freeaudio.mod/alsadevice.cpp

@@ -1,6 +1,6 @@
 // alsadevice.cpp
 
-#ifdef __linux
+#ifdef __linux__
 
 #include "freeaudio.h"
 

+ 1 - 1
freeaudio.mod/ossdevice.cpp

@@ -1,6 +1,6 @@
 // ossdevice.cpp
 
-#ifdef __linux
+#ifdef __linux__
 
 #include "freeaudio.h"
 

+ 1 - 1
freeaudio.mod/pulseaudiodevice.cpp

@@ -1,7 +1,7 @@
 // pulseaudiodevice.cpp
 // sudo apt-get install libpulse-dev
 
-#ifdef __linux
+#ifdef __linux__
 
 #include "freeaudio.h"
 

+ 2 - 2
freeprocess.mod/freeprocess.c

@@ -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().

+ 1 - 1
glew.mod/glew.c

@@ -174,7 +174,7 @@ void* NSGLGetProcAddress (const GLubyte *name)
 #  define glewGetProcAddress(name) NULL /* TODO */
 #elif defined(__native_client__)
 #  define glewGetProcAddress(name) NULL /* TODO */
-#else /* __linux */
+#else /* __linux__ */
 #  define glewGetProcAddress(name) (*glXGetProcAddressARB)(name)
 #endif
 

+ 1 - 1
libuuid.mod/include/blkdev.h

@@ -74,7 +74,7 @@
 #  define CDROM_GET_CAPABILITY 0x5331
 # endif
 
-#endif /* __linux */
+#endif /* __linux__ */
 
 
 #ifdef APPLE_DARWIN

+ 1 - 1
lua.mod/lua-5.1.4/src/luaconf.h

@@ -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

+ 1 - 1
openal.mod/openal.c

@@ -64,7 +64,7 @@ void *GetOpenALFunction( const char *fname ){
 
 #endif
 
-#if __linux
+#if __linux__
 
 #include <dlfcn.h>
 

+ 1 - 1
physfs.mod/physfs/src/physfs_platforms.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
 #  define PHYSFS_PLATFORM_POSIX 1