summaryrefslogtreecommitdiffstats
path: root/src/skel/crossplatform.cpp
diff options
context:
space:
mode:
authoreray orçunus <erayorcunus@gmail.com>2020-05-11 19:10:01 +0200
committereray orçunus <erayorcunus@gmail.com>2020-05-11 19:10:01 +0200
commit36e2bc95d385c79075495d96e066d697727449d5 (patch)
treeea31257f477421dedf55decfd8bde8f478198d4a /src/skel/crossplatform.cpp
parentLinux build support (diff)
downloadre3-36e2bc95d385c79075495d96e066d697727449d5.tar
re3-36e2bc95d385c79075495d96e066d697727449d5.tar.gz
re3-36e2bc95d385c79075495d96e066d697727449d5.tar.bz2
re3-36e2bc95d385c79075495d96e066d697727449d5.tar.lz
re3-36e2bc95d385c79075495d96e066d697727449d5.tar.xz
re3-36e2bc95d385c79075495d96e066d697727449d5.tar.zst
re3-36e2bc95d385c79075495d96e066d697727449d5.zip
Diffstat (limited to 'src/skel/crossplatform.cpp')
-rw-r--r--src/skel/crossplatform.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/skel/crossplatform.cpp b/src/skel/crossplatform.cpp
index 9971d2ae..40f4f053 100644
--- a/src/skel/crossplatform.cpp
+++ b/src/skel/crossplatform.cpp
@@ -1,6 +1,9 @@
#include "common.h"
#include "crossplatform.h"
+// Codes compatible with Windows and Linux
+#ifndef _WIN32
+
// For internal use
// wMilliseconds is not needed
void tmToSystemTime(const tm *tm, SYSTEMTIME *out) {
@@ -18,6 +21,7 @@ void GetLocalTime_CP(SYSTEMTIME *out) {
tm *localTm = localtime(&timestamp);
tmToSystemTime(localTm, out);
}
+#endif
// Compatible with Linux/POSIX and MinGW on Windows
#ifndef _WIN32
@@ -80,6 +84,7 @@ void FileTimeToSystemTime(time_t* writeTime, SYSTEMTIME* out) {
}
#endif
+// Funcs/features from Windows that we need on other platforms
#ifndef _WIN32
char *strupr(char *s) {
char* tmp = s;