]> granicus.if.org Git - graphviz/commitdiff
Move extern "C" first thing to avoid error:
authorTony Kelman <tony@kelman.net>
Wed, 8 Apr 2015 07:19:20 +0000 (00:19 -0700)
committerTony Kelman <tony@kelman.net>
Wed, 8 Apr 2015 07:19:20 +0000 (00:19 -0700)
expected unqualified-id before string constant
when compiling in C++ (cmd/gvedit/main.cpp)

lib/common/globals.h

index dda4c7cbf1a178ddcc970ed6b8dd5448fc06e8e2..56b7eabcf13bfddf17bf6b804fb88bca769b4b17 100644 (file)
 #endif                         /* _POSIX_ */
 #endif                         /* _UWIN */
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 #ifndef __CYGWIN__
 #if defined(_BLD_dotneato) && defined(_DLL)
 #   define external __EXPORT__
 #endif
 #ifndef EXTERN
 #define EXTERN extern
-#endif
-
-#ifdef __cplusplus
-extern "C" {
 #endif
 
     EXTERN char *Version;