comparison dep/animia/src/fd.cc @ 153:bd439dd6ffc5

*: make win stuff actually work, rename bsd.cc to xnu.cc It's been OS X only for ages, and these functions are different between most BSDs anyway
author Paper <mrpapersonic@gmail.com>
date Wed, 15 Nov 2023 13:28:18 -0500
parents 8700806c2cc2
children cdf79282d647
comparison
equal deleted inserted replaced
152:8700806c2cc2 153:bd439dd6ffc5
2 2
3 #ifdef WIN32 3 #ifdef WIN32
4 # include "animia/fd/win32.h" 4 # include "animia/fd/win32.h"
5 #elif defined(LINUX) 5 #elif defined(LINUX)
6 # include "animia/fd/linux.h" 6 # include "animia/fd/linux.h"
7 #elif defined(UNIX) 7 #elif defined(MACOSX)
8 # include "animia/fd/bsd.h" 8 # include "animia/fd/xnu.h"
9 #endif 9 #endif
10 10
11 namespace animia::internal { 11 namespace animia::internal {
12 12
13 #ifdef WIN32 13 #ifdef WIN32
14 win32::Win32FdTools os_fd; 14 win32::Win32FdTools os_fd;
15 #elif defined(LINUX) 15 #elif defined(LINUX)
16 linux::LinuxFdTools os_fd; 16 linux::LinuxFdTools os_fd;
17 #elif defined(UNIX) 17 #elif defined(MACOSX)
18 unix::UnixFdTools os_fd; 18 xnu::XnuFdTools os_fd;
19 #else 19 #else
20 BaseFdTools os_fd; 20 BaseFdTools os_fd;
21 #endif 21 #endif
22 22
23 BaseFdTools& fd = os_fd; 23 BaseFdTools& fd = os_fd;