Kaydet (Commit) acb382e2 authored tarafından Kurt Zenker's avatar Kurt Zenker

INTEGRATION: CWS dmake412_DEV300 (1.12.2); FILE MERGED

2007/11/12 00:12:02 vq 1.12.2.3: #i83540# Make dmake buildable with .NET 2003 again.
2007/11/11 23:05:48 vq 1.12.2.2: #i83540# Enable parallel builds with native W32 dmake. (First MinGW only.)
2007/11/11 00:03:31 vq 1.12.2.1: #i83523# Rename macro PVOID to DMPVOID to avoid problems when including
windows.h.
üst 35720044
/* $RCSfile: extern.h,v $ /* $RCSfile: extern.h,v $
-- $Revision: 1.12 $ -- $Revision: 1.13 $
-- last change: $Author: ihi $ $Date: 2007-10-15 15:39:00 $ -- last change: $Author: kz $ $Date: 2008-03-05 18:28:27 $
-- --
-- SYNOPSIS -- SYNOPSIS
-- External declarations for dmake functions. -- External declarations for dmake functions.
...@@ -29,6 +29,12 @@ ...@@ -29,6 +29,12 @@
#ifndef EXTERN_h #ifndef EXTERN_h
#define EXTERN_h #define EXTERN_h
/* For MSVC++ needs to include windows.h first to avoid problems with
* type redefinitions. Include it also for MinGW for consistency. */
#if defined(__MINGW32__) || defined(_MSC_VER)
#include <windows.h>
#endif
#include "config.h" #include "config.h"
/* Define this for the RS/6000 if it breaks something then we have to put a /* Define this for the RS/6000 if it breaks something then we have to put a
...@@ -74,7 +80,7 @@ ...@@ -74,7 +80,7 @@
# include <utime.h> # include <utime.h>
#endif #endif
#define PVOID void * #define DMPVOID void *
#include <signal.h> #include <signal.h>
#include "itypes.h" #include "itypes.h"
...@@ -139,6 +145,19 @@ char *cygdospath(char *src, int winpath); ...@@ -139,6 +145,19 @@ char *cygdospath(char *src, int winpath);
# define NULLDEV "/dev/null" # define NULLDEV "/dev/null"
#endif #endif
/* For MSVC 6.0 and newer and MinGW use the CreateProcess() function. */
#if defined(__MINGW32__) || defined(_MSC_VER) && _MSC_VER >= 1200
# define USE_CREATEPROCESS 1
#else
/* #undef USE_CREATEPROCESS */
#endif
/* CreateProcess() is spawn-like. */
#if ENABLE_SPAWN && ( HAVE_SPAWN_H || __CYGWIN__ || __EMX__) || defined(USE_CREATEPROCESS)
# define USE_SPAWN 1
#else
/* #undef USE_SPAWN */
#endif
/* Work around some of the functions that may or may not exist */ /* Work around some of the functions that may or may not exist */
#if ! HAVE_TZSET #if ! HAVE_TZSET
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment