ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/freemol/trunk/src/mengine/src/pcwin.h
Revision: 58
Committed: Mon Dec 1 06:44:59 2008 UTC (12 years, 10 months ago) by wdelano
File size: 756 byte(s)
Log Message:
code merge 20081130
Line User Rev File contents
1 wdelano 58 #include <stdio.h>
2     #include <stdlib.h>
3     #include <unistd.h>
4     #include <stddef.h>
5     #include <string.h>
6     #include <ctype.h>
7     #include <math.h>
8     #include <limits.h>
9     //#include <malloc.h>
10     //#include <direct.h>
11 tjod 3
12 wdelano 58 #define strnicmp strncasecmp
13 tjod 3
14     #define TRUE True
15     #define FALSE False
16 wdelano 58 #define true True
17     #define false False
18 tjod 3
19     #ifndef PI /* Avoid Linux Warnings! */
20     #define PI 3.14159265358979323846
21     #endif
22    
23     #define Rad2Deg (180.0/PI)
24     #define Deg2Rad (PI/180.0)
25     #define AbsFun(a) (((a)<0)? -(a) : (a))
26     #define MinFun(a,b) (((a)<(b))? (a) : (b) )
27     #define MaxFun(a,b) (((a)>(b))? (a) : (b) )
28    
29    
30     struct FileInfoStruct {
31     int ftype ;
32     char path[255] ;
33     char fname[255] ;
34     } ;
35    
36     typedef struct FileInfoStruct Boxstruct;
37     EXTERN Boxstruct Openbox ,Savebox;