csplugincommon/directx/guids.h
00001 /* 00002 Copyright (C) 2005 by Jorrit Tyberghein 00003 Frank Richter 00004 00005 This library is free software; you can redistribute it and/or 00006 modify it under the terms of the GNU Library General Public 00007 License as published by the Free Software Foundation; either 00008 version 2 of the License, or (at your option) any later version. 00009 00010 This library is distributed in the hope that it will be useful, 00011 but WITHOUT ANY WARRANTY; without even the implied warranty of 00012 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00013 Library General Public License for more details. 00014 00015 You should have received a copy of the GNU Library General Public 00016 License along with this library; if not, write to the Free 00017 Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 00018 */ 00019 00020 #ifndef __CS_CSPLUGINCOMMON_DIRECTX_GUIDS_H__ 00021 #define __CS_CSPLUGINCOMMON_DIRECTX_GUIDS_H__ 00022 00023 // Must appear first after cssysdef.h 00024 00025 #include "csextern_dx.h" 00026 // Hack to export GUID_NULL from crystalspace_directx, too 00027 #ifdef CS_BUILD_SHARED_LIBS 00028 #define GUID_NULL _DEFAULT_GUID_NULL 00029 #endif 00030 #define WIN32_LEAN_AND_MEAN 00031 #include <windows.h> 00032 #ifdef CS_BUILD_SHARED_LIBS 00033 #undef GUID_NULL 00034 #endif 00035 00036 #ifdef CS_BUILD_SHARED_LIBS 00037 // Modify DEFINE_GUID macro to do DLL importing 00038 #undef DEFINE_GUID 00039 #undef GUID_EXT 00040 #define GUID_EXT extern CS_CSPLUGINCOMMON_DX_EXPORT 00041 00042 #ifdef INITGUID 00043 #define DEFINE_GUID(n,l,w1,w2,b1,b2,b3,b4,b5,b6,b7,b8) GUID_EXT const GUID n = {l,w1,w2,{b1,b2,b3,b4,b5,b6,b7,b8}} 00044 #else 00045 #define DEFINE_GUID(n,l,w1,w2,b1,b2,b3,b4,b5,b6,b7,b8) GUID_EXT const GUID n 00046 #endif 00047 00048 GUID_EXT const GUID GUID_NULL; 00049 00050 #endif // CS_BUILD_SHARED_LIBS 00051 00052 #endif // __CS_CSPLUGINCOMMON_DIRECTX_GUIDS_H__
Generated for Crystal Space 1.2 by doxygen 1.4.7