/* This source file is part of HGamer3D (A project to enable 3D game development in Haskell) For the latest info, see http://www.althainz.de/HGamer3D.html Copyright 2011 Dr. Peter Althainz Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ // OISDllDefines.h #ifndef _HGamer3DOIS013_DLLDEFINES_H_ #define _HGamer3DOIS013_DLLDEFINES_H_ /* Cmake will define HGamer3DOIS013_EXPORTS on Windows when it configures to build a shared library. If you are going to use another build system on windows or create the visual studio projects by hand you need to define MyLibrary_EXPORTS when building a DLL on windows. */ // We are using the Visual Studio Compiler and building Shared libraries #if (defined (_WIN32)) && !(defined (__GNUC__)) #if defined(HGamer3DOIS013_EXPORTS) #define OIS_LIB_EXPORT __declspec(dllexport) #else #define OIS_LIB_EXPORT __declspec(dllimport) #endif /* HGamer3DOIS013_EXPORTS */ #else /* defined (_WIN32) */ #define OIS_LIB_EXPORT #endif #endif /* _HGamer3DOIS013_DLLDEFINES_H_ */