diff dep/animia/include/os.h @ 97:18979b066284

animia/unix: fix a bunch of stuff that breaks OS X things
author Paper <mrpapersonic@gmail.com>
date Thu, 02 Nov 2023 13:14:15 -0400
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/dep/animia/include/os.h	Thu Nov 02 13:14:15 2023 -0400
@@ -0,0 +1,16 @@
+/* can this be moved to cmake? */
+#ifndef __animia__os_h
+#define __animia__os_h
+
+#ifdef __linux__
+#	define ON_LINUX
+#elif (defined(unix) || defined(__unix__) || defined(__unix) || (defined(__APPLE__) && defined(__MACH__)))
+#	if (defined(__APPLE__) && defined(__MACH__))
+#		define ON_OSX
+#	endif
+#	define ON_UNIX
+#elif defined(_WIN32)
+#	define ON_WINDOWS
+#endif
+
+#endif // __animia__os_h
\ No newline at end of file