From: Tony Kelman Date: Wed, 8 Apr 2015 07:19:20 +0000 (-0700) Subject: Move extern "C" first thing to avoid error: X-Git-Tag: TRAVIS_CI_BUILD_EXPERIMENTAL~25^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=912ca98a97dadfda19a5dc3f166f325ff67d870a;p=graphviz Move extern "C" first thing to avoid error: expected unqualified-id before string constant when compiling in C++ (cmd/gvedit/main.cpp) --- diff --git a/lib/common/globals.h b/lib/common/globals.h index dda4c7cbf..56b7eabcf 100644 --- a/lib/common/globals.h +++ b/lib/common/globals.h @@ -27,6 +27,10 @@ #endif /* _POSIX_ */ #endif /* _UWIN */ +#ifdef __cplusplus +extern "C" { +#endif + #ifndef __CYGWIN__ #if defined(_BLD_dotneato) && defined(_DLL) # define external __EXPORT__ @@ -55,10 +59,6 @@ #endif #ifndef EXTERN #define EXTERN extern -#endif - -#ifdef __cplusplus -extern "C" { #endif EXTERN char *Version;