xref: /trunk/main/solenv/inc/svpm.h (revision af1486d9)
1 /*************************************************************************
2 
3    Copyright 2011 Yuri Dario <mc6530@mclink.it>
4 
5    Licensed under the Apache License, Version 2.0 (the "License");
6    you may not use this file except in compliance with the License.
7    You may obtain a copy of the License at
8 
9        http://www.apache.org/licenses/LICENSE-2.0
10 
11    Unless required by applicable law or agreed to in writing, software
12    distributed under the License is distributed on an "AS IS" BASIS,
13    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14    See the License for the specific language governing permissions and
15    limitations under the License.
16 
17  ************************************************************************/
18 
19 #ifndef _SVPM_H
20 #define _SVPM_H
21 
22 #ifdef __cplusplus
23 extern "C" {
24 #endif
25 
26 #ifdef __ZTC__
27 #define _Seg16  _far16
28 #define _Far16  _far16
29 #define _System _syscall
30 #define _Pascal _pascal
31 #define _Cdecl  _cdecl
32 #endif
33 
34 #define BOOL        	PM_BOOL
35 #define BYTE        	PM_BYTE
36 #define ADDRESS     	PM_ADDRESS 	// YD xmloff
37 #define LINE        	PM_LINE    	// YD basic
38 #define CM_ERROR    	PM_CM_ERROR	// YD automation
39 #define CURSOR_FRAME 	PM_CURSOR_FRAME	// YD binfilter
40 #define POLYGON		PM_POLYGON	// YD sd
41 #define FIXED		PM_FIXED	// YD oox
42 #define DATETIME	PM_DATETIME	// YD oox ooo320
43 #define RGB_RED		PM_RGB_RED	// YD vcl
44 #define RGB_GREEN	PM_RGB_GREEN	// YD vcl
45 #define RGB_BLUE	PM_RGB_BLUE	// YD vcl
46 #define RGB		PM_RGB		// YD rsc bison 2.3
47 
48 #define RGB_RED		PM_RGB_RED	// YD xmlhelp
49 #define RGB_BLUE	PM_RGB_BLUE	// YD xmlhelp
50 #define RGB_GREEN	PM_RGB_GREEN	// YD xmlhelp
51 #define CURSOR_FRAME	PM_CURSOR_FRAME	// YD xmlhelp
52 #define CM_ERROR	PM_CM_ERROR	// YD xmlhelp
53 #define ADDRESS		PM_ADDRESS	// YD xmlhelp
54 #define COMMENT		PM_COMMENT	// YD offuh
55 
56 #define INCL_PM
57 #define INCL_DOSSEMAPHORES
58 
59 //yd 26/03/2006 OOo hack
60 #define OS2EMX_PLAIN_CHAR
61 
62 #include <os2.h>
63 #include <unikbd.h>
64 #ifdef VCL_OS2
65 #include <pmbidi.h>
66 #endif
67 
68 #undef BOOL
69 #undef BYTE
70 #undef ADDRESS
71 #undef LINE
72 #undef CM_ERROR
73 #undef CURSOR_FRAME
74 #undef POLYGON
75 #undef FIXED
76 #undef DATETIME
77 #undef RGB_RED
78 #undef RGB_GREEN
79 #undef RGB_BLUE
80 #undef RGB
81 #undef RGB_RED
82 #undef RGB_BLUE
83 #undef CURSOR_FRAME
84 #undef ADDRESS
85 #undef RGB_GREEN
86 #undef CM_ERROR
87 #undef COMMENT
88 
89 #ifdef __cplusplus
90 }
91 #endif
92 
93 #endif // _SVPM_H
94