Changed __LINUX__ to __UNIXSDL__.

This commit is contained in:
n-a-c-h
2005-07-10 02:05:12 +00:00
parent 251758fbc3
commit ea1e34a964
37 changed files with 183 additions and 183 deletions

View File

@@ -4,7 +4,7 @@
Read unzip.h for more info
*/
#ifdef __LINUX__
#ifdef __UNIXSDL__
#include "../gblhdr.h"
#else
#include <stdio.h>

View File

@@ -18,7 +18,7 @@
#include <stdlib.h>
#endif
#ifdef __LINUX__
#ifdef __UNIXSDL__
#include "../gblhdr.h"
#endif
@@ -127,7 +127,7 @@ char *generate_filename(void)
short i=0;
struct stat buf;
char *tmp = &fnames;
#ifdef __LINUX__
#ifdef __UNIXSDL__
char *tmp2 = 0;
#endif
@@ -156,7 +156,7 @@ char *generate_filename(void)
tmp = filename+strlen(filename);
while (*tmp!='.') tmp--;
#ifdef __LINUX__
#ifdef __UNIXSDL__
tmp2 = filename;
while (tmp2<tmp) {
if (*tmp2 == ' ') *tmp2 = '_';
@@ -170,7 +170,7 @@ char *generate_filename(void)
for(i=0;i<10000;i++)
{
#ifdef __LINUX__
#ifdef __UNIXSDL__
sprintf(tmp, "_%04d.png", i);
#else
sprintf(tmp, " %04d.png", i);

View File

@@ -12,7 +12,7 @@
typedef enum {false, true} bool;
#endif
//#define __UPSIDE_DOWN__ /*define if pngs are saved upside down*/
#ifdef __LINUX__
#ifdef __UNIXSDL__
#include "../gblhdr.h"
#else
#include <png.h>