Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
It's now possible to build SDL without any C runtime at all on Windows,
using Visual C++ 2005
- Loading branch information
Showing
101 changed files
with
8,883 additions
and
602 deletions.
There are no files selected for viewing
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,87 @@ | ||
/* | ||
SDL - Simple DirectMedia Layer | ||
Copyright (C) 1997-2006 Sam Lantinga | ||
This library is free software; you can redistribute it and/or | ||
modify it under the terms of the GNU Lesser General Public | ||
License as published by the Free Software Foundation; either | ||
version 2.1 of the License, or (at your option) any later version. | ||
This library is distributed in the hope that it will be useful, | ||
but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
Lesser General Public License for more details. | ||
You should have received a copy of the GNU Lesser General Public | ||
License along with this library; if not, write to the Free Software | ||
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA | ||
Sam Lantinga | ||
slouken@libsdl.org | ||
*/ | ||
|
||
#ifndef _SDL_config_h | ||
#define _SDL_config_h | ||
|
||
/* This is a set of defines to configure the SDL features */ | ||
|
||
#define HAVE_STDARG_H | ||
|
||
/* Comment this if you want to build without any libc requirements */ | ||
#define HAVE_LIBC | ||
#ifdef HAVE_LIBC | ||
|
||
/* Various C library headers */ | ||
#define HAVE_CTYPE_H | ||
#define HAVE_STDIO_H | ||
#define HAVE_STDLIB_H | ||
#define HAVE_MALLOC_H | ||
#define HAVE_STRING_H | ||
#if !defined(_WIN32_WCE) | ||
#define HAVE_SIGNAL_H | ||
#endif | ||
|
||
/* Features provided by SDL_stdlib.h */ | ||
#if !defined(_WIN32) /* Don't use C runtime versions of these on Windows */ | ||
#define HAVE_GETENV | ||
#define HAVE_PUTENV | ||
#endif | ||
#define HAVE_MALLOC | ||
#define HAVE_REALLOC | ||
#define HAVE_FREE | ||
#define HAVE_ALLOCA | ||
/*#define HAVE_QSORT*/ | ||
|
||
/* Features provided by SDL_string.h */ | ||
#define HAVE_MEMSET | ||
#define HAVE_MEMCPY | ||
#define HAVE_MEMMOVE | ||
#define HAVE_MEMCMP | ||
#define HAVE_STRLEN | ||
#define HAVE_STRCPY | ||
#define HAVE_STRNCPY | ||
/*#define HAVE__STRREV*/ | ||
/*#define HAVE__STRUPR*/ | ||
/*#define HAVE__STRLWR*/ | ||
#define HAVE_STRCHR | ||
#define HAVE_STRRCHR | ||
#define HAVE_STRSTR | ||
/*#define HAVE_ITOA*/ | ||
/*#define HAVE__LTOA*/ | ||
/*#define HAVE__UITOA*/ | ||
/*#define HAVE__ULTOA*/ | ||
/*#define HAVE_STRTOL*/ | ||
/*#define HAVE__I64TOA*/ | ||
/*#define HAVE__UI64TOA*/ | ||
/*#define HAVE_STRTOLL*/ | ||
#define HAVE_STRCMP | ||
#define HAVE_STRNCMP | ||
/*#define HAVE_STRICMP*/ | ||
/*#define HAVE_STRCASECMP*/ | ||
#define HAVE_SSCANF | ||
/*#define HAVE_SNPRINTF*/ | ||
#define HAVE_VSNPRINTF | ||
|
||
#endif /* HAVE_LIBC */ | ||
|
||
#endif /* _SDL_config_h */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
/* | ||
SDL - Simple DirectMedia Layer | ||
Copyright (C) 1997-2006 Sam Lantinga | ||
This library is free software; you can redistribute it and/or | ||
modify it under the terms of the GNU Lesser General Public | ||
License as published by the Free Software Foundation; either | ||
version 2.1 of the License, or (at your option) any later version. | ||
This library is distributed in the hope that it will be useful, | ||
but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
Lesser General Public License for more details. | ||
You should have received a copy of the GNU Lesser General Public | ||
License along with this library; if not, write to the Free Software | ||
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA | ||
Sam Lantinga | ||
slouken@libsdl.org | ||
*/ | ||
|
||
/* This file contains portable character manipulation functions for SDL */ | ||
|
||
#ifndef _SDL_CTYPE_H_ | ||
#define _SDL_CTYPE_H_ | ||
|
||
#include "SDL_config.h" | ||
|
||
#ifdef HAVE_CTYPE_H | ||
#include <ctype.h> | ||
#else | ||
#define isdigit(X) (((X) >= '0') && ((X) <= '9')) | ||
#define isspace(X) (((X) == ' ') || ((X) == '\t') || ((X) == '\r') || ((X) == '\n')) | ||
#define toupper(X) (((X) >= 'a') && ((X) <= 'z') ? ('A'+((X)-'a')) : (X)) | ||
#define tolower(X) (((X) >= 'A') && ((X) <= 'Z') ? ('a'+((X)-'A')) : (X)) | ||
#endif | ||
|
||
#endif /* _SDL_CTYPE_H_ */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
/* | ||
SDL - Simple DirectMedia Layer | ||
Copyright (C) 1997-2006 Sam Lantinga | ||
This library is free software; you can redistribute it and/or | ||
modify it under the terms of the GNU Lesser General Public | ||
License as published by the Free Software Foundation; either | ||
version 2.1 of the License, or (at your option) any later version. | ||
This library is distributed in the hope that it will be useful, | ||
but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
Lesser General Public License for more details. | ||
You should have received a copy of the GNU Lesser General Public | ||
License along with this library; if not, write to the Free Software | ||
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA | ||
Sam Lantinga | ||
slouken@libsdl.org | ||
*/ | ||
|
||
#ifndef _SDL_stdarg_h | ||
#define _SDL_stdarg_h | ||
|
||
#include "SDL_config.h" | ||
|
||
#ifdef HAVE_STDARG_H | ||
#include <stdarg.h> | ||
#else | ||
#error Need stdarg.h equivalent for this platform | ||
#endif | ||
|
||
#endif /* _SDL_stdarg_h */ |
Oops, something went wrong.