## Public API Reference

- Main Page
- Modules
- Namespaces
- Classes
- Files
- Related Pages

- File List
- File Members

# 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 #include <windows.h>
    00031 #ifdef CS_BUILD_SHARED_LIBS
    00032 #undef GUID_NULL
    00033 #endif
    00034
    00035 #ifdef CS_BUILD_SHARED_LIBS
    00036 // Modify DEFINE_GUID macro to do DLL importing
    00037 #undef DEFINE_GUID
    00038 #undef GUID_EXT
    00039 #define GUID_EXT        extern CS_CSPLUGINCOMMON_DX_EXPORT
    00040
    00041 #ifdef INITGUID
    00042 #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}}
    00043 #else
    00044 #define DEFINE_GUID(n,l,w1,w2,b1,b2,b3,b4,b5,b6,b7,b8) GUID_EXT const GUID n
    00045 #endif
    00046
    00047 GUID_EXT const GUID GUID_NULL;
    00048
    00049 #endif // CS_BUILD_SHARED_LIBS
    00050
    00051 #endif // __CS_CSPLUGINCOMMON_DIRECTX_GUIDS_H__