00001 /***************************************************************** 00002 | 00003 | AP4 - Target Platform and Compiler Configuration 00004 | 00005 | Copyright 2002 Gilles Boccon-Gibod 00006 | 00007 | 00008 | This file is part of Bento4/AP4 (MP4 Atom Processing Library). 00009 | 00010 | Unless you have obtained Bento4 under a difference license, 00011 | this version of Bento4 is Bento4|GPL. 00012 | Unless you have obtained Bento4 under a difference license, 00013 | this version of Bento4 is Bento4|GPL. 00014 | Bento4|GPL is free software; you can redistribute it and/or modify 00015 | it under the terms of the GNU General Public License as published by 00016 | the Free Software Foundation; either version 2, or (at your option) 00017 | any later version. 00018 | 00019 | Bento4|GPL is distributed in the hope that it will be useful, 00020 | but WITHOUT ANY WARRANTY; without even the implied warranty of 00021 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00022 | GNU General Public License for more details. 00023 | 00024 | You should have received a copy of the GNU General Public License 00025 | along with Bento4|GPL; see the file COPYING. If not, write to the 00026 | Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA 00027 | 02111-1307, USA. 00028 | 00029 ****************************************************************/ 00030 00031 #ifndef _AP4_CONFIG_H_ 00032 #define _AP4_CONFIG_H_ 00033 00034 /*---------------------------------------------------------------------- 00035 | defaults 00036 +---------------------------------------------------------------------*/ 00037 #define AP4_CONFIG_HAVE_CPP_STRING_H 00038 #define AP4_CONFIG_HAVE_STDIO_H 00039 #define AP4_CONFIG_HAVE_ASSERT_H 00040 00041 #define AP4_CONFIG_HAVE_CPP_STRING 00042 00043 #define AP4_CONFIG_HAVE_SNPRINTF 00044 00045 /*---------------------------------------------------------------------- 00046 | byte order 00047 +---------------------------------------------------------------------*/ 00048 // define AP4_PLATFORM_BYTE_ORDER to one of these two choices 00049 #define AP4_PLATFORM_BYTE_ORDER_BIG_ENDIAN 0 00050 #define AP4_PLATFORM_BYTE_ORDER_LITTLE_ENDIAN 1 00051 00052 #ifdef __ppc__ 00053 #define AP4_PLATFORM_BYTE_ORDER AP4_PLATFORM_BYTE_ORDER_BIG_ENDIAN 00054 #endif 00055 00056 #define AP4_PLATFORM_BYTE_ORDER AP4_PLATFORM_BYTE_ORDER_LITTLE_ENDIAN 00057 00058 /*---------------------------------------------------------------------- 00059 | Win32 specifics 00060 +---------------------------------------------------------------------*/ 00061 #ifdef WIN32 00062 #define snprintf _snprintf 00063 #define vsnprintf _vsnprintf 00064 #if defined(_DEBUG) 00065 #define AP4_DEBUG 00066 #endif 00067 #endif 00068 00069 #endif // _AP4_CONFIG_H_