]> git.rkrishnan.org Git - dttsp.git/blob - jDttSP/win/fromsys.h
Initial revision
[dttsp.git] / jDttSP / win / fromsys.h
1 /* fromsys.h\r
2    stuff we need to import everywhere \r
3  This file is part of a program that implements a Software-Defined Radio.\r
4 \r
5 Copyright (C) 2004 by Frank Brickle, AB2KT and Bob McGwier, N4HY\r
6 \r
7 This program is free software; you can redistribute it and/or modify\r
8 it under the terms of the GNU General Public License as published by\r
9 the Free Software Foundation; either version 2 of the License, or\r
10 (at your option) any later version.\r
11 \r
12 This program is distributed in the hope that it will be useful,\r
13 but WITHOUT ANY WARRANTY; without even the implied warranty of\r
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\r
15 GNU General Public License for more details.\r
16 \r
17 You should have received a copy of the GNU General Public License\r
18 along with this program; if not, write to the Free Software\r
19 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA\r
20 \r
21 The authors can be reached by email at\r
22 \r
23 ab2kt@arrl.net\r
24 or\r
25 rwmcgwier@comcast.net\r
26 \r
27 or by paper mail at\r
28 \r
29 The DTTS Microwave Society\r
30 6 Kathleen Place\r
31 Bridgewater, NJ 08807\r
32 */\r
33 \r
34 #ifndef _fromsys_h\r
35 #define _fromsys_h\r
36 #ifndef _WINDOWS \r
37 \r
38 #include <sys/types.h>\r
39 #include <sys/param.h>\r
40 #include <sys/stat.h>\r
41 #include <sys/time.h>\r
42 #include <sys/wait.h>  \r
43 #include <sys/mman.h>\r
44 #include <sys/ioctl.h>\r
45 #include <sys/socket.h>  \r
46 #include <signal.h>\r
47 #include <unistd.h>\r
48 #include <fcntl.h>\r
49 #include <setjmp.h>\r
50 \r
51 #include <stdlib.h>\r
52 #include <values.h>\r
53 #include <stdio.h>\r
54 #include <ctype.h>\r
55 #include <string.h>\r
56 #include <math.h>\r
57 #include <assert.h>\r
58 #include <libgen.h>\r
59 \r
60 #include <pthread.h>\r
61 #include <semaphore.h>\r
62 \r
63 #include <jack/jack.h>\r
64 #include <jack/ringbuffer.h>\r
65 #define DttSP_EXP\r
66 \r
67 #else\r
68 \r
69 #include <sys/types.h>\r
70 //#include <sys/param.h> // WINBLOWS\r
71 #define MAXPATHLEN (260-1 /* NULL */)\r
72 #include <sys/stat.h>\r
73 #include <time.h>\r
74 //#include <unistd.h>\r
75 #include <fcntl.h>\r
76 \r
77 #include <stdlib.h>\r
78 #include <windows.h>\r
79 #include <stdio.h>\r
80 #include <ctype.h>\r
81 #include <string.h>\r
82 #include <math.h>\r
83 #ifndef M_PI\r
84 #define M_PI 3.14159265358928\r
85 #endif\r
86 #include <assert.h>\r
87 #define DttSP_EXP __declspec(dllexport)\r
88 #define DttSP_IMP __declspec(dllimport)\r
89 \r
90 #define sem_wait(p) WaitForSingleObject(p,INFINITE)\r
91 #define sem_post(p) ReleaseSemaphore(p,1,NULL);\r
92 #define pthread_exit(p) ExitThread((DWORD)p)\r
93 \r
94 #endif  // _WINDOWS\r
95 #endif // _fromsys_h\r