diff --git a/arch/carbon/SDL_main.c b/arch/carbon/SDL_main.c index 5d8aa86ed..0f45cc4cf 100755 --- a/arch/carbon/SDL_main.c +++ b/arch/carbon/SDL_main.c @@ -500,11 +500,11 @@ int main(int argc, char *argv[]) /* Set pseudo-environment variables for video driver, update prefs */ switch ( videodriver ) { case VIDEO_ID_DRAWSPROCKET: - putenv ("SDL_VIDEODRIVER=DSp"); + SDL_putenv ("SDL_VIDEODRIVER=DSp"); memcpy (prefs.video_driver_name, "\pDSp", 4); break; case VIDEO_ID_TOOLBOX: - putenv ("SDL_VIDEODRIVER=toolbox"); + SDL_putenv ("SDL_VIDEODRIVER=toolbox"); memcpy (prefs.video_driver_name, "\ptoolbox", 8); break; } diff --git a/arch/carbon/conf.h b/arch/carbon/conf.h index 455617078..954e93424 100755 --- a/arch/carbon/conf.h +++ b/arch/carbon/conf.h @@ -25,28 +25,28 @@ /* Define to 1 if you have the declaration of `nanosleep', and to 0 if you don't. */ -#define HAVE_DECL_NANOSLEEP 1 +//#define HAVE_DECL_NANOSLEEP 1 /* Define to 1 if you have the header file. */ -#define HAVE_INTTYPES_H 1 +//#define HAVE_INTTYPES_H 1 /* Define to 1 if you have the header file. */ -#define HAVE_MEMORY_H 1 +//#define HAVE_MEMORY_H 1 /* Define to 1 if you have the header file. */ /* #undef HAVE_NETIPX_IPX_H */ /* Define to 1 if you have the header file. */ -#define HAVE_STDINT_H 1 +//#define HAVE_STDINT_H 1 /* Define to 1 if you have the header file. */ -#define HAVE_STDLIB_H 1 +//#define HAVE_STDLIB_H 1 /* Define to 1 if you have the header file. */ -#define HAVE_STRINGS_H 1 +//#define HAVE_STRINGS_H 1 /* Define to 1 if you have the header file. */ -#define HAVE_STRING_H 1 +//#define HAVE_STRING_H 1 /* Define if you want to build for mac datafiles */ //#define MACDATA @@ -88,7 +88,7 @@ #define SHAREPATH "/Users/christaylor/share/games/d2x" /* Define to 1 if you have the ANSI C header files. */ -#define STDC_HEADERS 1 +//#define STDC_HEADERS 1 /* Define if you want an SVGALib build */ /* #undef SVGA */ @@ -132,13 +132,13 @@ #define HAVE_STRUCT_TIMEVAL 1 /* Define to 1 if you have the header file. */ -#define HAVE_SYS_STAT_H 1 +//#define HAVE_SYS_STAT_H 1 /* Define to 1 if you have the header file. */ -#define HAVE_SYS_TYPES_H 1 +//#define HAVE_SYS_TYPES_H 1 /* Define to 1 if you have the header file. */ -#define HAVE_UNISTD_H 1 +//#define HAVE_UNISTD_H 1 #else // Mac OS 9 # ifndef __MWERKS__ @@ -155,13 +155,13 @@ #define HAVE_STRUCT_TIMEVAL 0 /* Define to 1 if you have the header file. */ -#define HAVE_SYS_STAT_H 0 +//#define HAVE_SYS_STAT_H 0 /* Define to 1 if you have the header file. */ -#define HAVE_SYS_TYPES_H 0 +//#define HAVE_SYS_TYPES_H 0 /* Define to 1 if you have the header file. */ -#define HAVE_UNISTD_H 0 +//#define HAVE_UNISTD_H 0 #endif // OS 9/X diff --git a/dxx-changelog.txt b/dxx-changelog.txt index 8d7100b1c..878397b84 100755 --- a/dxx-changelog.txt +++ b/dxx-changelog.txt @@ -3,6 +3,7 @@ D2X-Rebirth Changelog 20061225 -------- main/titles.c: fix crash where loading screen function is called before video mode is set (when SDL Video is used as well as -notitles) +arch/carbon/conf.h, arch/carbon/SDL_main.c: fix compile errors when building on Mac OS 9 using SDL 1.2.10 (conflicting macros, use of putenv) 20061224 --------