mirror of
https://github.com/RubyMetric/chsrc
synced 2025-12-23 19:11:22 +08:00
Fix conflicts
This commit is contained in:
8
helper.h
8
helper.h
@@ -28,6 +28,8 @@
|
|||||||
static bool xy_on_macos = false;
|
static bool xy_on_macos = false;
|
||||||
static bool xy_on_bsds = false;
|
static bool xy_on_bsds = false;
|
||||||
|
|
||||||
|
static char* xy_os_devnull = "nul";
|
||||||
|
|
||||||
#include <windows.h>
|
#include <windows.h>
|
||||||
#define xy_useutf8() SetConsoleOutputCP(65001)
|
#define xy_useutf8() SetConsoleOutputCP(65001)
|
||||||
|
|
||||||
@@ -38,6 +40,8 @@
|
|||||||
static bool xy_on_macos = false;
|
static bool xy_on_macos = false;
|
||||||
static bool xy_on_bsds = false;
|
static bool xy_on_bsds = false;
|
||||||
|
|
||||||
|
static char* xy_os_devnull = "/dev/null"
|
||||||
|
|
||||||
#define xy_useutf8()
|
#define xy_useutf8()
|
||||||
|
|
||||||
#elif defined(TARGET_OS_MAC) ||defined(__MACOSX__)
|
#elif defined(TARGET_OS_MAC) ||defined(__MACOSX__)
|
||||||
@@ -47,6 +51,8 @@
|
|||||||
static bool xy_on_macos = true;
|
static bool xy_on_macos = true;
|
||||||
static bool xy_on_bsds = false;
|
static bool xy_on_bsds = false;
|
||||||
|
|
||||||
|
// set xy_os_devnull
|
||||||
|
|
||||||
#define xy_useutf8()
|
#define xy_useutf8()
|
||||||
|
|
||||||
#elif defined(__OpenBSD__) || defined(__NetBSD__) || defined(__FreeBSD__)
|
#elif defined(__OpenBSD__) || defined(__NetBSD__) || defined(__FreeBSD__)
|
||||||
@@ -56,6 +62,8 @@
|
|||||||
static bool xy_on_macos = false;
|
static bool xy_on_macos = false;
|
||||||
static bool xy_on_bsds = true;
|
static bool xy_on_bsds = true;
|
||||||
|
|
||||||
|
// set xy_os_devnull
|
||||||
|
|
||||||
#define xy_useutf8()
|
#define xy_useutf8()
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user