~ubuntu-branches/ubuntu/hardy/swig1.3/hardy

« back to all changes in this revision

Viewing changes to Lib/linkruntime.c

  • Committer: Bazaar Package Importer
  • Author(s): Adam Conrad
  • Date: 2005-12-05 01:16:04 UTC
  • mfrom: (1.2.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20051205011604-ygx904it6413k3go
Tags: 1.3.27-1ubuntu1
Resynchronise with Debian again, for the new subversion packages.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
2
 
#  if defined(_MSC_VER) || defined(__GNUC__)
3
 
#    if defined(STATIC_LINKED)
4
 
#      define SWIGEXPORT(a) a
5
 
#    else
6
 
#      define SWIGEXPORT(a) __declspec(dllexport) a
7
 
#    endif
8
 
#  else
9
 
#    if defined(__BORLANDC__)
10
 
#      define SWIGEXPORT(a) a _export
11
 
#    else
12
 
#      define SWIGEXPORT(a) a
13
 
#    endif
14
 
#  endif
15
 
#else
16
 
#  define SWIGEXPORT(a) a
17
 
#endif
 
1
# if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
 
2
#   if defined(STATIC_LINKED)
 
3
#     define SWIGEXPORT
 
4
#   else
 
5
#     define SWIGEXPORT __declspec(dllexport)
 
6
#   endif
 
7
# else
18
8
 
19
9
static void *ptr = 0;
20
 
SWIGEXPORT(void *)
 
10
SWIGEXPORT void *
21
11
SWIG_ReturnGlobalTypeList(void *t) {
22
12
 if (!ptr && !t) ptr = t;
23
13
 return ptr;