Fix macOS macro

Close #I80IGH
This commit is contained in:
Aoran Zeng 2023-09-13 22:41:16 +08:00
parent 0baba000eb
commit 5f729f7989

6
xy.h
View File

@ -3,7 +3,7 @@
* License : MIT * License : MIT
* Authors : Aoran Zeng <ccmywish@qq.com> * Authors : Aoran Zeng <ccmywish@qq.com>
* Created on : <2023-08-28> * Created on : <2023-08-28>
* Last modified : <2023-09-10> * Last modified : <2023-09-13>
* *
* xy: * xy:
* *
@ -51,14 +51,14 @@
#define xy_useutf8() #define xy_useutf8()
#elif defined(TARGET_OS_MAC) || defined(__MACOSX__) #elif defined(__APPLE__)
static bool xy_on_windows = false; static bool xy_on_windows = false;
static bool xy_on_linux = false; static bool xy_on_linux = false;
static bool xy_on_macos = true; static bool xy_on_macos = true;
static bool xy_on_bsd = false; static bool xy_on_bsd = false;
// set xy_os_devnull static char* xy_os_devnull = "/dev/null";
#define xy_useutf8() #define xy_useutf8()