projects
/
tinc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Replace MinGW with Windows to avoid ambiguities
[tinc]
/
src
/
have.h
diff --git
a/src/have.h
b/src/have.h
index
f19c599
..
36d17b6
100644
(file)
--- a/
src/have.h
+++ b/
src/have.h
@@
-21,7
+21,7
@@
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
-#ifdef HAVE_
MINGW
+#ifdef HAVE_
WINDOWS
#define WINVER 0x0600
#define _WIN32_WINNT 0x0600
#define WIN32_LEAN_AND_MEAN
#define WINVER 0x0600
#define _WIN32_WINNT 0x0600
#define WIN32_LEAN_AND_MEAN
@@
-51,7
+51,7
@@
#define alloca(size) __builtin_alloca(size)
#endif
#define alloca(size) __builtin_alloca(size)
#endif
-#ifdef HAVE_
MINGW
+#ifdef HAVE_
WINDOWS
#ifdef HAVE_W32API_H
#include <w32api.h>
#endif
#ifdef HAVE_W32API_H
#include <w32api.h>
#endif
@@
-65,7
+65,7
@@
#include <process.h>
#include <direct.h>
#endif
#include <process.h>
#include <direct.h>
#endif
-#endif // HAVE_
MINGW
+#endif // HAVE_
WINDOWS
#ifdef HAVE_TERMIOS_H
#include <termios.h>
#ifdef HAVE_TERMIOS_H
#include <termios.h>
@@
-237,7
+237,7
@@
#undef STATUS
#endif
#undef STATUS
#endif
-#ifdef HAVE_
MINGW
+#ifdef HAVE_
WINDOWS
#define SLASH "\\"
#else
#define SLASH "/"
#define SLASH "\\"
#else
#define SLASH "/"