aboutsummaryrefslogtreecommitdiff
path: root/client/libacron/private/helpers.c
diff options
context:
space:
mode:
authorTrumeet <yuuta@yuuta.moe>2022-07-27 15:03:00 -0700
committerTrumeet <yuuta@yuuta.moe>2022-07-27 15:03:00 -0700
commitd935aa8516f2eab5cbde467b9c92400dcf636bcb (patch)
tree49c9a70ea57b4cb3fd74ad9bf6e1ca913da456ae /client/libacron/private/helpers.c
parent3a450ee1759b3df38d698daabdfafd0447d8223a (diff)
downloadacron-d935aa8516f2eab5cbde467b9c92400dcf636bcb.tar
acron-d935aa8516f2eab5cbde467b9c92400dcf636bcb.tar.gz
acron-d935aa8516f2eab5cbde467b9c92400dcf636bcb.tar.bz2
acron-d935aa8516f2eab5cbde467b9c92400dcf636bcb.zip
build(libacron): switch to Meson
Meson is better on resolving dependencies on various platforms.
Diffstat (limited to 'client/libacron/private/helpers.c')
-rw-r--r--client/libacron/private/helpers.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/client/libacron/private/helpers.c b/client/libacron/private/helpers.c
index 0cb452b..a859e80 100644
--- a/client/libacron/private/helpers.c
+++ b/client/libacron/private/helpers.c
@@ -12,7 +12,7 @@
#include <errno.h>
#include <stdio.h>
-#ifdef WIN32
+#ifdef _WIN32
#include <windows.h>
#endif
@@ -53,14 +53,14 @@ int strdup2(const char *str, char **out) {
return AC_E_OK;
}
-#ifdef WIN32
+#ifdef _WIN32
static _Thread_local LPTSTR err_buf = NULL;
#else
static _Thread_local char err_buf[1024];
#endif
char *strerror2(int errnum) {
-#ifdef WIN32
+#ifdef _WIN32
if (err_buf) {
LocalFree(err_buf);
err_buf = NULL;
@@ -88,10 +88,10 @@ char *strerror2(int errnum) {
}
void helpers_cleanup(void) {
-#ifdef WIN32
+#ifdef _WIN32
if (err_buf) {
LocalFree(err_buf);
err_buf = NULL;
}
#endif
-} \ No newline at end of file
+}