diff src/video/x11/SDL_x11image.c @ 1402:d910939febfa

Use consistent identifiers for the various platforms we support. Make sure every source file includes SDL_config.h, so the proper system headers are chosen.
author Sam Lantinga <slouken@libsdl.org>
date Tue, 21 Feb 2006 08:46:50 +0000
parents 19418e4422cb
children 3ba88cb7eb1b
line wrap: on
line diff
--- a/src/video/x11/SDL_x11image.c	Tue Feb 21 08:34:45 2006 +0000
+++ b/src/video/x11/SDL_x11image.c	Tue Feb 21 08:46:50 2006 +0000
@@ -19,6 +19,7 @@
     Sam Lantinga
     slouken@libsdl.org
 */
+#include "SDL_config.h"
 
 #include <stdio.h>
 #include <unistd.h>
@@ -148,7 +149,7 @@
        static int num_cpus = 0;
 
        if(!num_cpus) {
-#if defined(__linux)
+#if defined(__LINUX__)
            char line[BUFSIZ];
            FILE *pstat = fopen("/proc/stat", "r");
            if ( pstat ) {
@@ -159,7 +160,7 @@
                }
                fclose(pstat);
            }
-#elif defined(__sgi)
+#elif defined(__IRIX__)
 	   num_cpus = sysconf(_SC_NPROC_ONLN);
 #elif defined(_SC_NPROCESSORS_ONLN)
 	   /* number of processors online (SVR4.0MP compliant machines) */