00001 /*========================================================================= 00002 00003 Program: OpenIGTLink Library 00004 Module: $HeadURL: http://svn.na-mic.org/NAMICSandBox/trunk/OpenIGTLink/Source/igtlutil/igtl_win32header.h $ 00005 Language: C 00006 Date: $Date: 2010-01-17 13:38:05 -0500 (Sun, 17 Jan 2010) $ 00007 Version: $Revision: 5577 $ 00008 00009 Copyright (c) Insight Software Consortium. All rights reserved. 00010 00011 This software is distributed WITHOUT ANY WARRANTY; without even 00012 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 00013 PURPOSE. See the above copyright notices for more information. 00014 00015 =========================================================================*/ 00016 00017 #ifndef __IGTL_WIN32HEADER_H 00018 #define __IGTL_WIN32HEADER_H 00019 00020 #include "igtl_typeconfig.h" 00021 00022 #if (defined(_WIN32) || defined(WIN32)) && !defined(IGTLSTATIC) 00023 # ifdef IGTLCommon_EXPORTS 00024 # define igtl_export __declspec(dllexport) 00025 # else 00026 # define igtl_export __declspec(dllimport) 00027 # endif /* igtl_common_exports */ 00028 #else 00029 /* unix needs nothing */ 00030 #define igtl_export 00031 #endif 00032 00033 #if defined(_WIN32) 00034 # include <windows.h> 00035 #endif 00036 00037 #if defined(_MSC_VER) 00038 // Enable MSVC compiler warning messages that are useful but off by default. 00039 # pragma warning ( disable : 4996 ) /* 'strncpy': This function or variable may be unsafe. */ 00040 #endif 00041 00042 00043 #endif /*__IGTL_WIN32HEADER_H*/ 00044