1 /* 2 Ming, an SWF output library 3 Copyright (C) 2001 Opaque Industries - http://www.opaque.net/ 4 5 This library is free software; you can redistribute it and/or 6 modify it under the terms of the GNU Lesser General Public 7 License as published by the Free Software Foundation; either 8 version 2.1 of the License, or (at your option) any later version. 9 10 This library is distributed in the hope that it will be useful, 11 but WITHOUT ANY WARRANTY; without even the implied warranty of 12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 13 Lesser General Public License for more details. 14 15 You should have received a copy of the GNU Lesser General Public 16 License along with this library; if not, write to the Free Software 17 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 18 */ 19 20 /* libswf.h - global typedefs, etc. */ 21 22 /* $Id$ */ 23 24 #ifndef LIBSWF_H_INCLUDED 25 #define LIBSWF_H_INCLUDED 26 27 #include <stdlib.h> 28 #include <stdio.h> 29 #include <string.h> 30 31 #include "error.h" 32 33 typedef unsigned char BOOL; 34 35 #ifndef TRUE 36 #define TRUE ((BOOL)1) 37 #endif 38 39 #ifndef FALSE 40 #define FALSE ((BOOL)0) 41 #endif 42 43 #ifndef M_PI 44 #define M_PI 3.14159265358979f 45 #endif 46 47 #ifndef min 48 #define min(a,b) (((a)<(b))?(a):(b)) 49 #endif 50 51 #ifndef max 52 #define max(a,b) (((a)>(b))?(a):(b)) 53 #endif 54 55 #ifndef rint 56 #define rint(d) (floor((d)+0.5)) 57 #endif 58 59 typedef unsigned char byte; 60 61 #endif /* LIBSWF_H_INCLUDED */ 62