Fossil SCM

minor reformulation of the makeheaders.c string.h patch.

stephan 2014-09-20 15:07 trunk
Commit 51937b72826092ce995e01f40265e6b0bc9d6866
1 file changed +2 -3
--- src/makeheaders.c
+++ src/makeheaders.c
@@ -37,17 +37,16 @@
3737
#include <stdlib.h>
3838
#include <ctype.h>
3939
#include <memory.h>
4040
#include <sys/stat.h>
4141
#include <assert.h>
42
+#include <string.h>
43
+
4244
#if defined( __MINGW32__) || defined(__DMC__) || defined(_MSC_VER) || defined(__POCC__)
4345
# ifndef WIN32
4446
# define WIN32
4547
# endif
46
-# include <string.h>
47
-#elif defined(__sun) && defined(__SVR4)
48
-# include <string.h>
4948
#else
5049
# include <unistd.h>
5150
#endif
5251
5352
/*
5453
--- src/makeheaders.c
+++ src/makeheaders.c
@@ -37,17 +37,16 @@
37 #include <stdlib.h>
38 #include <ctype.h>
39 #include <memory.h>
40 #include <sys/stat.h>
41 #include <assert.h>
 
 
42 #if defined( __MINGW32__) || defined(__DMC__) || defined(_MSC_VER) || defined(__POCC__)
43 # ifndef WIN32
44 # define WIN32
45 # endif
46 # include <string.h>
47 #elif defined(__sun) && defined(__SVR4)
48 # include <string.h>
49 #else
50 # include <unistd.h>
51 #endif
52
53 /*
54
--- src/makeheaders.c
+++ src/makeheaders.c
@@ -37,17 +37,16 @@
37 #include <stdlib.h>
38 #include <ctype.h>
39 #include <memory.h>
40 #include <sys/stat.h>
41 #include <assert.h>
42 #include <string.h>
43
44 #if defined( __MINGW32__) || defined(__DMC__) || defined(_MSC_VER) || defined(__POCC__)
45 # ifndef WIN32
46 # define WIN32
47 # endif
 
 
 
48 #else
49 # include <unistd.h>
50 #endif
51
52 /*
53

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button