From 26ed1ebeb95caec8d733a6a91e71e31312a8eb06 Mon Sep 17 00:00:00 2001 From: rpj Date: Mon, 30 May 2011 00:30:56 +0000 Subject: Compiler directive cleanups --- need_errno.h | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'need_errno.h') 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 -#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 -- cgit v1.2.3