]> granicus.if.org Git - graphviz/commitdiff
Move definition of GLOB_* above first use.
authorerg <devnull@localhost>
Tue, 17 Jul 2007 18:35:02 +0000 (18:35 +0000)
committererg <devnull@localhost>
Tue, 17 Jul 2007 18:35:02 +0000 (18:35 +0000)
lib/gvc/gvconfig.c

index cbaa577eb6d3e209daa4b1c3119057121c8bf3ee..f44d8d81900c96cc0eb1ea931e2d921c1f23b7d6 100644 (file)
 #ifdef ENABLE_LTDL
 #include       <sys/types.h>
 #ifdef WIN32
+#include <windows.h>
+#define GLOB_NOSPACE    1   /* Ran out of memory.  */
+#define GLOB_ABORTED    2   /* Read error.  */
+#define GLOB_NOMATCH    3   /* No matches found.  */
+#define GLOB_NOSORT     4
+#define DMKEY "Software\\Microsoft" //key to look for library dir
 #include        <regex_win32.c>
 typedef struct {
     int gl_pathc;           /* count of total paths so far */
@@ -561,12 +567,6 @@ void gvconfig(GVC_t * gvc, boolean rescan)
 
 #ifdef ENABLE_LTDL
 #ifdef WIN32
-#include <windows.h>
-#define GLOB_NOSPACE    1   /* Ran out of memory.  */
-#define GLOB_ABORTED    2   /* Read error.  */
-#define GLOB_NOMATCH    3   /* No matches found.  */
-#define GLOB_NOSORT     4
-#define DMKEY "Software\\Microsoft" //key to look for library dir
 
 /* Emulating windows glob */