aboutsummaryrefslogtreecommitdiff
path: root/include/spm.h
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunkeler@users.noreply.github.com>2020-05-07 06:11:13 -0400
committerGitHub <noreply@github.com>2020-05-07 06:11:13 -0400
commit26db5dff18a40b402d20a572953870aab549c5f2 (patch)
tree539d6a9800f41efad4ed50b1864aae1e677ccded /include/spm.h
parent6cc450d8ff714af09374f9bc07aea8bb05f74a5c (diff)
parentde47b0d91a79651088e76d64dc4b032146203cca (diff)
downloadspmc-26db5dff18a40b402d20a572953870aab549c5f2.tar.gz
Merge pull request #33 from jhunkeler/install-name-tool
Install name tool (etc...)
Diffstat (limited to 'include/spm.h')
-rw-r--r--include/spm.h21
1 files changed, 14 insertions, 7 deletions
diff --git a/include/spm.h b/include/spm.h
index 5382378..e0e713f 100644
--- a/include/spm.h
+++ b/include/spm.h
@@ -8,16 +8,24 @@
#define OS_DARWIN 0
#define OS_WINDOWS 0
#define OS_LINUX 0
+#define OS_SUPPORTED 0
#if defined(__APPLE__) && defined(__MACH__)
-#undef OS_DARWIN
-#define OS_DARWIN 1
+# undef OS_DARWIN
+# define OS_DARWIN 1
+# undef OS_SUPPORTED
+# define OS_SUPPORTED 1
+
+// TODO: Windows is not supported at all yet, so OS_SUPPORTED is untouched
#elif defined(_WIN32)
-#undef OS_WINDOWS
-#define OS_WINDOWS 1
+# undef OS_WINDOWS
+# define OS_WINDOWS 1
+
#elif defined(__linux) || defined(__linux__)
-#undef OS_LINUX
-#define OS_LINUX 1
+# undef OS_LINUX
+# define OS_LINUX 1
+# undef OS_SUPPORTED
+# define OS_SUPPORTED 1
#endif
#include <ctype.h>
@@ -32,7 +40,6 @@
#include <string.h>
#include <time.h>
#include <sys/stat.h>
-#include <openssl/md5.h>
#include <openssl/sha.h>
#if !OS_WINDOWS