view dep/animia/src/fd.cc @ 163:44c5e6dd9488

dep/animia/osx: move GetProcessName to util/osx so we can use it in quartz
author Paper <mrpapersonic@gmail.com>
date Sat, 18 Nov 2023 00:47:40 -0500
parents cdf79282d647
children 54c5d80a737e
line wrap: on
line source

#include "animia/fd.h"

#ifdef WIN32
#	include "animia/fd/win32.h"
#elif defined(LINUX)
#	include "animia/fd/linux.h"
#elif defined(MACOSX)
#	include "animia/fd/xnu.h"
#endif

namespace animia::internal {

#ifdef WIN32
win32::Win32FdTools os_fd;
#elif defined(LINUX)
linux::LinuxFdTools os_fd;
#elif defined(MACOSX)
xnu::XnuFdTools os_fd;
#else
BaseFdTools os_fd;
#endif

BaseFdTools& fd = os_fd;

} // namespace animia::internal