Browse Source

Replace __linux with __linux__

Ronny Otto 2 years ago
parent
commit
0e3e7d2059

+ 2 - 2
blitz.mod/blitz_app.c

@@ -172,7 +172,7 @@ HICON bbAppIcon(HINSTANCE hInstance) {
 	return LoadIcon(hInstance, "APP_ICON");
 }
 
-#elif __linux
+#elif __linux__
 
 #include <unistd.h>
 #include <pthread.h>
@@ -465,7 +465,7 @@ void bbStartup( int argc,char *argv[],void *dummy1,void *dummy2 ){
 		bbMemFree(p);
 	}
 
-#elif __linux
+#elif __linux__
 
 	char *ebp;
 	char buf[PATH_MAX];

+ 2 - 2
blitz.mod/blitz_gc.c

@@ -15,7 +15,7 @@ extern void *_data_start__;
 #endif
 #endif
 
-#ifdef __linux
+#ifdef __linux__
 #ifdef __ANDROID__
 extern int __data_start[];
 extern int _end[];
@@ -69,7 +69,7 @@ void bbGCStartup( void *spTop ){
 //	GC_add_roots((void*)seg->vmaddr, (void*)(seg->vmaddr + seg->vmsize));
 #endif
 
-#ifdef __linux
+#ifdef __linux__
 	GC_add_roots(&__data_start, &_end);
 #endif
 */

+ 2 - 2
blitz.mod/blitz_gc_ms.c

@@ -53,7 +53,7 @@ extern void *_stop_data__;
 extern void *_end__;
 #endif
 
-#ifdef __linux
+#ifdef __linux__
 extern void *__data_start;
 extern void *__bss_start;
 extern void *_end;
@@ -439,7 +439,7 @@ void bbGCStartup(){
 	DATA_END=(void**)(seg[6]+seg[7]);
 #endif
 
-#ifdef __linux
+#ifdef __linux__
 	DATA_START=&__data_start;
 	DATA_END=&_end;
 #endif	

+ 1 - 1
blitz.mod/blitz_thread.c

@@ -315,7 +315,7 @@ int bbThreadResume( BBThread *thread ) {
 #include <unistd.h>
 #include <signal.h>
 
-#if __linux
+#if __linux__
 #define MUTEX_RECURSIVE 1
 #elif __APPLE__
 #define MUTEX_RECURSIVE 2

+ 1 - 1
blitz.mod/blitz_thread.h

@@ -63,7 +63,7 @@ extern pthread_mutexattr_t _bb_mutexattr;
 
 #endif
 
-#ifdef __linux
+#ifdef __linux__
 
 #include <semaphore.h>
 typedef sem_t bb_sem_t;

+ 1 - 1
systemdefault.mod/system.h

@@ -52,7 +52,7 @@ void bbSystemEmitOSEvent( NSEvent *event,NSView *view,BBObject *source );
 
 BBString * brl_blitz_bbStringFromUTF8String(const char * text);
 
-#elif __linux
+#elif __linux__
 
 #include <X11/Xlib.h>
 void bbSystemEmitOSEvent( XEvent *event,BBObject *source );

+ 1 - 1
threads.mod/threads.c

@@ -239,7 +239,7 @@ int threads_TimedWaitCond(pthread_cond_t *cond,bb_mutex_t *mutex, int millisecs)
 
 #endif
 
-#if __linux || __HAIKU__
+#if __linux__ || __HAIKU__
 int threads_TimedWaitSemaphore( bb_sem_t *sem, int millisecs ){
 	struct timespec ts;