Blender V2.61 - r43446
|
00001 /* 00002 * ***** BEGIN GPL LICENSE BLOCK ***** 00003 * 00004 * This program is free software; you can redistribute it and/or 00005 * modify it under the terms of the GNU General Public License 00006 * as published by the Free Software Foundation; either version 2 00007 * of the License, or (at your option) any later version. 00008 * 00009 * This program is distributed in the hope that it will be useful, 00010 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00011 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00012 * GNU General Public License for more details. 00013 * 00014 * You should have received a copy of the GNU General Public License 00015 * along with this program; if not, write to the Free Software Foundation, 00016 * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 00017 * 00018 * The Original Code is Copyright (C) 2001-2002 by NaN Holding BV. 00019 * All rights reserved. 00020 * 00021 * The Original Code is: some of this file. 00022 * 00023 * ***** END GPL LICENSE BLOCK ***** 00024 * */ 00025 00026 #ifndef BLI_MATH_INLINE_H 00027 #define BLI_MATH_INLINE_H 00028 00033 #ifdef __cplusplus 00034 extern "C" { 00035 #endif 00036 00037 /* add platform/compiler checks here if it is not supported */ 00038 #define BLI_MATH_INLINE_H 00039 00040 #ifdef BLI_MATH_INLINE_H 00041 #ifdef _MSC_VER 00042 #define MINLINE static __forceinline 00043 #define MALWAYS_INLINE MINLINE 00044 #else 00045 #define MINLINE static inline 00046 #if (defined(__APPLE__) && defined(__ppc__)) 00047 /* static inline __attribute__ here breaks osx ppc gcc42 build */ 00048 #define MALWAYS_INLINE static __attribute__((always_inline)) 00049 #else 00050 #define MALWAYS_INLINE static inline __attribute__((always_inline)) 00051 #endif 00052 #endif 00053 #else 00054 #define MINLINE 00055 #define MALWAYS_INLINE 00056 #endif 00057 00058 #ifdef __cplusplus 00059 } 00060 #endif 00061 00062 #endif /* BLI_MATH_INLINE_H */ 00063