Mercurial > minori
comparison dep/animia/src/fd.cc @ 152:8700806c2cc2
dep/animia: awesome new breaking changes!
I'm so tired
author | Paper <mrpapersonic@gmail.com> |
---|---|
date | Wed, 15 Nov 2023 02:34:59 -0500 |
parents | ffa535b6d630 |
children | bd439dd6ffc5 |
comparison
equal
deleted
inserted
replaced
151:54744a48a7d7 | 152:8700806c2cc2 |
---|---|
1 #include "animia/os.h" | |
2 #include "animia/fd.h" | 1 #include "animia/fd.h" |
3 | 2 |
4 #ifdef ANIMIA_ON_WIN32 | 3 #ifdef WIN32 |
5 # include "animia/fd/win32.h" | 4 # include "animia/fd/win32.h" |
6 #elif defined(ANIMIA_ON_LINUX) | 5 #elif defined(LINUX) |
7 # include "animia/fd/linux.h" | 6 # include "animia/fd/linux.h" |
8 #elif defined(ANIMIA_ON_UNIX) | 7 #elif defined(UNIX) |
9 # include "animia/fd/bsd.h" | 8 # include "animia/fd/bsd.h" |
10 #endif | 9 #endif |
11 | 10 |
12 namespace animia::internal { | 11 namespace animia::internal { |
13 | 12 |
14 /* really stupid hack to get fd to point to the right | 13 #ifdef WIN32 |
15 thing */ | |
16 #ifdef ANIMIA_ON_WIN32 | |
17 win32::Win32FdTools os_fd; | 14 win32::Win32FdTools os_fd; |
18 #elif defined(ANIMIA_ON_LINUX) | 15 #elif defined(LINUX) |
19 linux::LinuxFdTools os_fd; | 16 linux::LinuxFdTools os_fd; |
20 #elif defined(ANIMIA_ON_UNIX) | 17 #elif defined(UNIX) |
21 unix::UnixFdTools os_fd; | 18 unix::UnixFdTools os_fd; |
22 #else | 19 #else |
23 BaseFdTools os_fd; | 20 BaseFdTools os_fd; |
24 #endif | 21 #endif |
25 | 22 |