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

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAleksey Kliger <alklig@microsoft.com>2017-11-10 01:35:42 +0300
committerAleksey Kliger (λgeek) <akliger@gmail.com>2017-11-10 06:19:32 +0300
commit00035e5b687551c90a67402de9b4b81c784d6482 (patch)
tree23f97cafd3d37f773d0661c684a6431a79262838 /support
parentee20fc0ad93fa1422f222e83a2ecaaaf90280407 (diff)
Include <config.h> in C files that include mono headers
Any translation unit that includes a Mono header should include <config.h> first to ensure that all of our configuration defines are available. In particular, config.h defines MONO_INSIDE_RUNTIME which, in mono-publib.h causes MONO_RT_EXTERNAL_ONLY to be defined to an attribute that causes a compilation error if you use a function that is internally deprecated for the runtime. Also change a couple of places that used non-_checked functions.
Diffstat (limited to 'support')
-rw-r--r--support/supportw.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/support/supportw.c b/support/supportw.c
index b5fdae354c2..d0f9b95ef89 100644
--- a/support/supportw.c
+++ b/support/supportw.c
@@ -9,6 +9,7 @@
* (C) 2005 Novell, Inc.
*
*/
+#include <config.h>
#include <glib.h>
#include <stdlib.h>
#include <string.h>