dllstuff.h

Go to the documentation of this file.
00001 //===========================================================================
00002 //Copyright (C) 2003, 2004 Zentaro Kavanagh
00003 //
00004 //Redistribution and use in source and binary forms, with or without
00005 //modification, are permitted provided that the following conditions
00006 //are met:
00007 //
00008 //- Redistributions of source code must retain the above copyright
00009 //  notice, this list of conditions and the following disclaimer.
00010 //
00011 //- Redistributions in binary form must reproduce the above copyright
00012 //  notice, this list of conditions and the following disclaimer in the
00013 //  documentation and/or other materials provided with the distribution.
00014 //
00015 //- Neither the name of Zentaro Kavanagh nor the names of contributors 
00016 //  may be used to endorse or promote products derived from this software 
00017 //  without specific prior written permission.
00018 //
00019 //THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
00020 //``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
00021 //LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
00022 //PARTICULAR PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE ORGANISATION OR
00023 //CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
00024 //EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
00025 //PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
00026 //PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
00027 //LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
00028 //NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
00029 //SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
00030 //===========================================================================
00031 
00032 // The following ifdef block is the standard way of creating macros which make exporting 
00033 // from a DLL simpler. All files within this DLL are compiled with the LIBOOOGG_EXPORTS
00034 // symbol defined on the command line. this symbol should not be defined on any project
00035 // that uses this DLL. This way any other project whose source files include this file see 
00036 // LIBOOOGG_API functions as being imported from a DLL, whereas this DLL sees symbols
00037 // defined with this macro as being exported.
00038 #pragma once
00039 
00040 #ifdef WIN32
00041 # ifdef LIBOOOGG_EXPORTS
00042 #  define LIBOOOGG_API __declspec(dllexport)
00043 # else
00044 #  define LIBOOOGG_API __declspec(dllimport)
00045 # endif
00046 # include <windows.h>
00047 #else  /* assume POSIX */
00048 # define LIBOOOGG_API
00049 # include <stdint.h>
00050 #endif
00051 
00052 #ifndef LOOG_INT64
00053 # ifdef WIN32
00054 #  define LOOG_INT64 signed __int64
00055 # else  /* assume POSIX */
00056 #  define LOOG_INT64 int64_t
00057 # endif
00058 #endif
00059 
00060 #ifndef LOOG_UINT64
00061 # ifdef WIN32
00062 #  define LOOG_UINT64 unsigned __int64
00063 # else  /* assume POSIX */
00064 #  define LOOG_UINT64 uint64_t
00065 # endif
00066 #endif
00067 

Generated on Tue Feb 15 14:54:20 2005 for oggdsf by  doxygen 1.3.9