changeset 141:14626691d0e1

linux: stop the preprocessor from mangling our definitions really?
author Paper <mrpapersonic@gmail.com>
date Sun, 12 Nov 2023 17:12:09 -0500
parents 1e696863b54c
children e4d25d40f272
files dep/animia/include/animia/fd/bsd.h dep/animia/include/animia/fd/linux.h
diffstat 2 files changed, 10 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/dep/animia/include/animia/fd/bsd.h	Sun Nov 12 16:54:58 2023 -0500
+++ b/dep/animia/include/animia/fd/bsd.h	Sun Nov 12 17:12:09 2023 -0500
@@ -9,6 +9,10 @@
 #include "animia/types.h"
 #include "animia/fd.h"
 
+#ifdef unix
+#undef unix
+#endif
+
 namespace animia::internal::unix {
 
 class UnixFdTools final : public BaseFdTools {
--- a/dep/animia/include/animia/fd/linux.h	Sun Nov 12 16:54:58 2023 -0500
+++ b/dep/animia/include/animia/fd/linux.h	Sun Nov 12 17:12:09 2023 -0500
@@ -9,6 +9,11 @@
 #include "animia/types.h"
 #include "animia/fd.h"
 
+/* Russian warship, go fuck yourself */
+#ifdef linux
+#undef linux
+#endif
+
 namespace animia::internal::linux {
 
 class LinuxFdTools final : public BaseFdTools {
@@ -20,4 +25,4 @@
 
 }
 
-#endif // __animia__animia__fd__linux_h
\ No newline at end of file
+#endif // __animia__animia__fd__linux_h