summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Salvador Cuñat <salvador.cunat@gmail.com>2017-05-20 09:36:38 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2017-06-11 13:50:59 -0700
commit15c0a0a6ea73c391d283391e388f9645238693f7 (patch)
tree52ff2614b5e9e7cce31cd6e396324f3ecab2141e
parent6963b52d9682c09d311ecc2d5a7380b7f1bc77e0 (diff)
downloadsubsurface-15c0a0a6ea73c391d283391e388f9645238693f7.tar.gz
smtk-import: portability: include windows.h
Include windows.h if we are cross building to windows Signed-off-by: Salvador Cuñat <salvador.cunat@gmail.com>
-rw-r--r--smtk-import/smartrak.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/smtk-import/smartrak.c b/smtk-import/smartrak.c
index 1d3daf21e..eadf4cfc1 100644
--- a/smtk-import/smartrak.c
+++ b/smtk-import/smartrak.c
@@ -30,6 +30,10 @@
#include <stdarg.h>
#include <locale.h>
+#if defined(WIN32) || defined(_WIN32)
+#include <windows.h>
+#endif
+
#include "core/dive.h"
#include "core/gettext.h"
#include "core/divelist.h"