aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Ridgers <[email protected]>2021-09-08 16:20:16 +0200
committerMartin Ridgers <[email protected]>2021-09-14 14:29:26 +0200
commit12dd896bf3290f31f9686edde09fc88aef2b0178 (patch)
tree5a33e18b3dcea5646f529a6d13590177adddfec6
parentOodle library for Linux (diff)
downloadzen-12dd896bf3290f31f9686edde09fc88aef2b0178.tar.xz
zen-12dd896bf3290f31f9686edde09fc88aef2b0178.zip
Added #ifdef around Windows-only #pragma-comment-lib statements
-rw-r--r--zencore/compress.cpp4
-rw-r--r--zencore/snapshot_manifest.cpp4
2 files changed, 6 insertions, 2 deletions
diff --git a/zencore/compress.cpp b/zencore/compress.cpp
index 2b2c4dd0b..2435c754c 100644
--- a/zencore/compress.cpp
+++ b/zencore/compress.cpp
@@ -8,7 +8,9 @@
#include <zencore/endian.h>
#include "../3rdparty/Oodle/include/oodle2.h"
-#pragma comment(lib, "oo2core_win64.lib")
+#if ZEN_PLATFORM_WINDOWS
+# pragma comment(lib, "oo2core_win64.lib")
+#endif
#include <doctest/doctest.h>
#include <lz4.h>
diff --git a/zencore/snapshot_manifest.cpp b/zencore/snapshot_manifest.cpp
index 7d0769d13..87625fb7f 100644
--- a/zencore/snapshot_manifest.cpp
+++ b/zencore/snapshot_manifest.cpp
@@ -13,7 +13,9 @@
// Used for getting My Documents for default snapshot dir
#include <ShlObj.h>
-#pragma comment(lib, "shell32.lib")
+#if ZEN_PLATFORM_WINDOWS
+# pragma comment(lib, "shell32.lib")
+#endif
namespace zen {