1 #ifndef CLUNK_TYPES_H 2 #define CLUNK_TYPES_H 3 4 /* clunk - cross-platform 3D audio API built on top SDL library 5 * Copyright (C) 2007-2014 Netive Media Group 6 * 7 * This library is free software; you can redistribute it and/or 8 * modify it under the terms of the GNU Lesser General Public 9 * License as published by the Free Software Foundation; either 10 * version 2.1 of the License, or (at your option) any later version. 11 12 * This library is distributed in the hope that it will be useful, 13 * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 15 * Lesser General Public License for more details. 16 * 17 * You should have received a copy of the GNU Lesser General Public 18 * License along with this library; if not, write to the Free Software 19 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 20 */ 21 22 #include <stdint.h> 23 24 #ifndef _USE_MATH_DEFINES 25 # define _USE_MATH_DEFINES 26 #endif 27 28 #include <math.h> 29 #include <clunk/config.h> 30 31 namespace clunk 32 { 33 typedef uint8_t u8; 34 typedef uint16_t u16; 35 typedef uint32_t u32; 36 37 typedef int8_t s8; 38 typedef int16_t s16; 39 typedef int32_t s32; 40 } 41 42 #if !(defined(__GNUC__) || defined(__GNUG__) || defined(__attribute__)) 43 # define __attribute__(p) /* nothing */ 44 #endif 45 46 #endif 47