Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mRemoteNG/PuTTYNG.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/defs.h
diff options
context:
space:
mode:
authorSimon Tatham <anakin@pobox.com>2021-04-19 08:40:01 +0300
committerSimon Tatham <anakin@pobox.com>2021-04-19 20:26:56 +0300
commit9fe15509808b71f618e559dc04bce68ad21bdba0 (patch)
tree3819457ee41d1952a8cf9b5894b2eea8c09e1005 /defs.h
parent70f6ce5628d229a643ef33c89eca25ffd594c8b3 (diff)
Make cmake.h available everywhere.
The definition of HAVE_CMAKE_H is now at the very top of the main CMakeLists.txt, so that it applies to all objects. And the consequent include of cmake.h is at the very top of defs.h, so that it should be included first by everything. This way, I don't have to worry any more that the HAVE_FOO definitions in cmake.h might accidentally have failed to reach some part of the code.
Diffstat (limited to 'defs.h')
-rw-r--r--defs.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/defs.h b/defs.h
index f175d257..b8205c10 100644
--- a/defs.h
+++ b/defs.h
@@ -22,6 +22,10 @@
#error Do not compile this code base with NDEBUG defined!
#endif
+#if HAVE_CMAKE_H
+#include "cmake.h"
+#endif
+
#include <stddef.h>
#include <stdint.h>
#include <stdio.h> /* for __MINGW_PRINTF_FORMAT */