Mercurial > minori
diff dep/animia/src/animia.cc @ 146:d8a61e7e2a36
dep/animia: move fd stuff to a new fd.cc, don't force the user
to include windows.h
author | Paper <mrpapersonic@gmail.com> |
---|---|
date | Mon, 13 Nov 2023 13:52:58 -0500 |
parents | 1e696863b54c |
children | aa4df5a84338 |
line wrap: on
line diff
--- a/dep/animia/src/animia.cc Sun Nov 12 18:38:38 2023 -0500 +++ b/dep/animia/src/animia.cc Mon Nov 13 13:52:58 2023 -0500 @@ -1,35 +1,11 @@ #include <string> #include <vector> +#include <set> #include "animia.h" #include "animia/strategies.h" #include "animia/types.h" - -#ifdef ANIMIA_ON_WIN32 -# include "animia/fd/win32.h" -#elif defined(ANIMIA_ON_LINUX) -# include "animia/fd/linux.h" -#elif defined(ANIMIA_ON_UNIX) -# include "animia/fd/bsd.h" -#endif - -namespace animia::internal { - -/* really stupid hack to get fd to point to the right - thing */ -#ifdef ANIMIA_ON_WIN32 -win32::Win32FdTools os_fd; -#elif defined(ANIMIA_ON_LINUX) -linux::LinuxFdTools os_fd; -#elif defined(ANIMIA_ON_UNIX) -unix::UnixFdTools os_fd; -#else -BaseFdTools os_fd; -#endif - -BaseFdTools& fd = os_fd; - -} +#include "animia/fd.h" namespace animia {