# HG changeset patch # User Paper # Date 1699827129 18000 # Node ID 14626691d0e13ee6d5a9f5f3395cfad6c1fa7da8 # Parent 1e696863b54cdfdf07667b0b06dcd1143f74ed2b linux: stop the preprocessor from mangling our definitions really? diff -r 1e696863b54c -r 14626691d0e1 dep/animia/include/animia/fd/bsd.h --- 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 { diff -r 1e696863b54c -r 14626691d0e1 dep/animia/include/animia/fd/linux.h --- 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