comparison src/sysdll.h @ 442:abe6d1db359e r21-2-36

Import from CVS: tag r21-2-36
author cvs
date Mon, 13 Aug 2007 11:35:02 +0200
parents 8de8e3f6228a
children 9fc738581a9d
comparison
equal deleted inserted replaced
441:72a7cfa4a488 442:abe6d1db359e
24 24
25 #ifdef __cplusplus 25 #ifdef __cplusplus
26 extern "C" { 26 extern "C" {
27 #endif 27 #endif
28 28
29 #if defined(WIN32) 29 #if defined(WIN32_NATIVE)
30 #define DLLEXPORT __declspec(dllexport) 30 #define DLLEXPORT __declspec(dllexport)
31 #elif defined(_WINDOWS) 31 #elif defined(WIN16)
32 #define DLLEXPORT FAR PASCAL _EXPORT 32 #define DLLEXPORT FAR PASCAL _EXPORT
33 #else 33 #else
34 #define DLLEXPORT 34 #define DLLEXPORT
35 #endif 35 #endif
36 36
37 typedef void * dll_handle; 37 typedef void * dll_handle;
38 typedef void * dll_func; 38 typedef void * dll_func;
39 typedef void * dll_var; 39 typedef void * dll_var;
40 40
41 int dll_init(CONST char *); 41 int dll_init(const char *);
42 int dll_shutdown(void); 42 int dll_shutdown(void);
43 dll_handle dll_open(CONST char *); 43 dll_handle dll_open(const char *);
44 int dll_close(dll_handle); 44 int dll_close(dll_handle);
45 dll_func dll_function(dll_handle,CONST char *); 45 dll_func dll_function(dll_handle,const char *);
46 dll_var dll_variable(dll_handle,CONST char *); 46 dll_var dll_variable(dll_handle,const char *);
47 CONST char *dll_error(dll_handle); 47 const char *dll_error(dll_handle);
48 48
49 #ifdef __cplusplus 49 #ifdef __cplusplus
50 } 50 }
51 #endif 51 #endif
52 52
53 /* More stand-ins ... */
54
55 #define Qdll_filename_encoding Qfile_name
56 #define Qdll_function_name_encoding Qnative
57
53 #endif /* INCLUDED_sysdll_h_ */ 58 #endif /* INCLUDED_sysdll_h_ */