mirror of
https://github.com/ZDoom/Raze.git
synced 2025-05-31 01:11:15 +00:00
- tested and fixed game list loader.
This commit is contained in:
parent
2a7beeff69
commit
c6753a3fec
10 changed files with 148 additions and 175 deletions
|
@ -672,10 +672,6 @@ inline void Bexit(int a)
|
|||
# define NULL ((void *)0)
|
||||
#endif
|
||||
|
||||
#ifdef _MSC_VER
|
||||
# define strtoll _strtoi64
|
||||
#endif
|
||||
|
||||
#ifndef O_BINARY
|
||||
# define O_BINARY 0
|
||||
#endif
|
||||
|
@ -687,34 +683,6 @@ inline void Bexit(int a)
|
|||
# define F_OK 0
|
||||
#endif
|
||||
|
||||
#ifdef GEKKO
|
||||
# undef PRIdPTR
|
||||
# define PRIdPTR "d"
|
||||
# undef PRIxPTR
|
||||
# define PRIxPTR "x"
|
||||
# undef SCNx32
|
||||
# define SCNx32 "x"
|
||||
#endif
|
||||
|
||||
#if defined EDUKE32_OSX
|
||||
# if !defined __x86_64__ && defined __GNUC__
|
||||
// PK 20110617: is*() crashes for me in x86 code compiled from 64-bit, and gives link errors on ppc
|
||||
// This hack patches all occurences.
|
||||
# define isdigit(ch) ({ int32_t c__dontuse_=ch; c__dontuse_>='0' && c__dontuse_<='9'; })
|
||||
# define isalpha(ch) ({ int32_t c__dontuse2_=ch; (c__dontuse2_>='A' && c__dontuse2_<='Z') || (c__dontuse2_>='a' && c__dontuse2_<='z'); })
|
||||
# define isalnum(ch2) ({ int32_t c2__dontuse_=ch2; isalpha(c2__dontuse_) || isdigit(c2__dontuse_); })
|
||||
# if defined __BIG_ENDIAN__
|
||||
# define isspace(ch) ({ int32_t c__dontuse_=ch; (c__dontuse_==' ' || c__dontuse_=='\t' || c__dontuse_=='\n' || c__dontuse_=='\v' || c__dontuse_=='\f' || c__dontuse_=='\r'); })
|
||||
# define isprint(ch) ({ int32_t c__dontuse_=ch; (c__dontuse_>=0x20 && c__dontuse_<0x7f); })
|
||||
# endif
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#ifdef __ANDROID__
|
||||
void eduke32_exit_return(int) ATTRIBUTE((noreturn));
|
||||
# define exit(x) eduke32_exit_return(x)
|
||||
#endif
|
||||
|
||||
|
||||
////////// Metaprogramming structs //////////
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue