annotate dep/animia/include/os.h @ 122:bc218c9d2ea6

strings: convert ToInt() to be a template ini: conform to new strings.cc changes
author Paper <mrpapersonic@gmail.com>
date Wed, 08 Nov 2023 21:36:09 -0500
parents 18979b066284
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
97
18979b066284 animia/unix: fix a bunch of stuff that breaks OS X things
Paper <mrpapersonic@gmail.com>
parents:
diff changeset
1 /* can this be moved to cmake? */
18979b066284 animia/unix: fix a bunch of stuff that breaks OS X things
Paper <mrpapersonic@gmail.com>
parents:
diff changeset
2 #ifndef __animia__os_h
18979b066284 animia/unix: fix a bunch of stuff that breaks OS X things
Paper <mrpapersonic@gmail.com>
parents:
diff changeset
3 #define __animia__os_h
18979b066284 animia/unix: fix a bunch of stuff that breaks OS X things
Paper <mrpapersonic@gmail.com>
parents:
diff changeset
4
18979b066284 animia/unix: fix a bunch of stuff that breaks OS X things
Paper <mrpapersonic@gmail.com>
parents:
diff changeset
5 #ifdef __linux__
18979b066284 animia/unix: fix a bunch of stuff that breaks OS X things
Paper <mrpapersonic@gmail.com>
parents:
diff changeset
6 # define ON_LINUX
18979b066284 animia/unix: fix a bunch of stuff that breaks OS X things
Paper <mrpapersonic@gmail.com>
parents:
diff changeset
7 #elif (defined(unix) || defined(__unix__) || defined(__unix) || (defined(__APPLE__) && defined(__MACH__)))
18979b066284 animia/unix: fix a bunch of stuff that breaks OS X things
Paper <mrpapersonic@gmail.com>
parents:
diff changeset
8 # if (defined(__APPLE__) && defined(__MACH__))
18979b066284 animia/unix: fix a bunch of stuff that breaks OS X things
Paper <mrpapersonic@gmail.com>
parents:
diff changeset
9 # define ON_OSX
18979b066284 animia/unix: fix a bunch of stuff that breaks OS X things
Paper <mrpapersonic@gmail.com>
parents:
diff changeset
10 # endif
18979b066284 animia/unix: fix a bunch of stuff that breaks OS X things
Paper <mrpapersonic@gmail.com>
parents:
diff changeset
11 # define ON_UNIX
18979b066284 animia/unix: fix a bunch of stuff that breaks OS X things
Paper <mrpapersonic@gmail.com>
parents:
diff changeset
12 #elif defined(_WIN32)
18979b066284 animia/unix: fix a bunch of stuff that breaks OS X things
Paper <mrpapersonic@gmail.com>
parents:
diff changeset
13 # define ON_WINDOWS
18979b066284 animia/unix: fix a bunch of stuff that breaks OS X things
Paper <mrpapersonic@gmail.com>
parents:
diff changeset
14 #endif
18979b066284 animia/unix: fix a bunch of stuff that breaks OS X things
Paper <mrpapersonic@gmail.com>
parents:
diff changeset
15
18979b066284 animia/unix: fix a bunch of stuff that breaks OS X things
Paper <mrpapersonic@gmail.com>
parents:
diff changeset
16 #endif // __animia__os_h