aboutsummaryrefslogtreecommitdiff
path: root/client/libacron/private
diff options
context:
space:
mode:
Diffstat (limited to 'client/libacron/private')
-rw-r--r--client/libacron/private/helpers.c10
-rw-r--r--client/libacron/private/win32.h2
2 files changed, 6 insertions, 6 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
+}
diff --git a/client/libacron/private/win32.h b/client/libacron/private/win32.h
index a907b28..3f39840 100644
--- a/client/libacron/private/win32.h
+++ b/client/libacron/private/win32.h
@@ -5,7 +5,7 @@
#ifndef LIBAC_WIN32_H
#define LIBAC_WIN32_H
-#ifdef WIN32
+#ifdef _WIN32
#define _Thread_local __declspec( thread )
#endif