diff options
author | rpj <rpj> | 2011-05-30 00:30:56 +0000 |
---|---|---|
committer | rpj <rpj> | 2011-05-30 00:30:56 +0000 |
commit | 26ed1ebeb95caec8d733a6a91e71e31312a8eb06 (patch) | |
tree | a957bdd3826088a9e447fc830ac4ccf835b77c44 /need_errno.h | |
parent | 2fe8aba6a8a4ce09f353f34881c77f93a9c01ca3 (diff) |
Compiler directive cleanups
Diffstat (limited to 'need_errno.h')
-rw-r--r-- | need_errno.h | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/need_errno.h b/need_errno.h index 30c674d..abf1c95 100644 --- a/need_errno.h +++ b/need_errno.h @@ -17,16 +17,16 @@ #pragma once #endif -#ifndef _INC_ERRNO +#if !defined(_INC_ERRNO) #define _INC_ERRNO -#if !defined(_WIN32) +#if !defined(_WIN32) #error ERROR: Only Win32 targets supported! #endif #include <winsock.h> -#ifdef __cplusplus +#if defined(__cplusplus) extern "C" { #endif @@ -35,7 +35,7 @@ extern "C" { /* Define _CRTIMP */ #ifndef _CRTIMP -#ifdef _DLL +#if defined(_DLL) #define _CRTIMP __declspec(dllimport) #else /* ndef _DLL */ #define _CRTIMP @@ -45,13 +45,13 @@ extern "C" { /* Define __cdecl for non-Microsoft compilers */ -#if ( !defined(_MSC_VER) && !defined(__cdecl) ) +#if ( !defined(_MSC_VER) && !defined(__cdecl) ) #define __cdecl #endif /* Define _CRTAPI1 (for compatibility with the NT SDK) */ -#ifndef _CRTAPI1 +#if !defined(_CRTAPI1) #if _MSC_VER >= 800 && _M_IX86 >= 300 #define _CRTAPI1 __cdecl #else @@ -60,7 +60,7 @@ extern "C" { #endif #if !defined(PTW32_STATIC_LIB) -# ifdef PTW32_BUILD +# if defined(PTW32_BUILD) # define PTW32_DLLPORT __declspec (dllexport) # else # define PTW32_DLLPORT __declspec (dllimport) @@ -71,7 +71,7 @@ extern "C" { /* declare reference to errno */ -#if (defined(_MT) || defined(_MD) || defined(_DLL)) && !defined(_MAC) +#if (defined(_MT) || defined(_MD) || defined(_DLL)) && !defined(_MAC) PTW32_DLLPORT int * __cdecl _errno(void); #define errno (*_errno()) #else /* ndef _MT && ndef _MD && ndef _DLL */ @@ -115,7 +115,7 @@ _CRTIMP extern int errno; #define EDEADLK 36 /* defined differently in winsock.h on WinCE */ -#ifndef ENAMETOOLONG +#if !defined(ENAMETOOLONG) #define ENAMETOOLONG 38 #endif @@ -123,7 +123,7 @@ _CRTIMP extern int errno; #define ENOSYS 40 /* defined differently in winsock.h on WinCE */ -#ifndef ENOTEMPTY +#if !defined(ENOTEMPTY) #define ENOTEMPTY 41 #endif @@ -138,7 +138,7 @@ _CRTIMP extern int errno; */ #define EDEADLOCK EDEADLK -#ifdef __cplusplus +#if defined(__cplusplus) } #endif |