File: mxh.h

package info (click to toggle)
python-mxtools 0.8-1
  • links: PTS
  • area: main
  • in suites: slink
  • size: 204 kB
  • ctags: 209
  • sloc: ansic: 1,961; python: 140; makefile: 41; sh: 19
file content (38 lines) | stat: -rw-r--r-- 931 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#ifndef MXH_H
#define MXH_H

/* 
  mxh.h -- Generic header file for mx extenstions

  This file should be included by every mx extension header file
  and the C file.

  (c) Marc-Andre Lemburg; all rights reserved
*/

/* We use our own definitions since Python's don't allow specifying
   both imported and exported symbols at the same time; these
   defines haven't been thoroughly tested yet, patches are most
   welcome :-)
*/

#if defined(__BORLANDC__)
#   define MX_EXPORT(type) type _export
#elif defined(_MSC_VER)
#   define MX_EXPORT(type) __declspec(dllexport) type
#elif defined(__WATCOMC__)
#   define MX_EXPORT(type) type __export 
#else
#   define MX_EXPORT(type) DL_IMPORT(type) 
#endif

#if defined(__BORLANDC__)
#   define MX_IMPORT(type) extern type __import
#elif defined(_MSC_VER)
#   define MX_IMPORT(type) extern __declspec(dllimport) type
#else
#   define MX_IMPORT(type) extern type
#endif

/* EOF */
#endif