Hamlib  1.2.14
rig_dll.h
00001 /* $Id: rig_dll.h,v 1.11 2007-05-21 21:41:59 fillods Exp $ */
00002 
00003 /*
00004  * Provide definitions to compile in Windows
00005  * using C-friendly options, e.g.
00006  *
00007  * HAMLIB_API -> __cdecl
00008  * HAMLIB_EXPORT, HAMLIB_EXPORT_VAR -> __declspec(dllexport)
00009  * BACKEND_EXPORT, BACKEND_EXPORT_VAR -> __declspec(dllexport)
00010  *
00011  * No effect in non-Windows environments.
00012  */
00013 
00014 #if defined(_WIN32) && !defined(__CYGWIN__)
00015 #  undef HAMLIB_IMPEXP
00016 #  undef BACKEND_IMPEXP
00017 #  undef HAMLIB_API
00018 #  undef HAMLIB_EXPORT
00019 #  undef HAMLIB_EXPORT_VAR
00020 #  undef BACKEND_EXPORT
00021 #  undef BACKEND_EXPORT_VAR
00022 #  undef HAMLIB_DLL_IMPORT
00023 #  undef HAMLIB_DLL_EXPORT
00024 
00025 #  if defined (__BORLANDC__)
00026 #  define HAMLIB_DLL_IMPORT __import
00027 #  define HAMLIB_DLL_EXPORT __export
00028 #  else
00029 #  define HAMLIB_DLL_IMPORT __declspec(dllimport)
00030 #  define HAMLIB_DLL_EXPORT __declspec(dllexport)
00031 #  endif
00032 
00033 #  ifdef DLL_EXPORT
00034      /* HAMLIB_API may be set to __stdcall for VB, .. */
00035 #    define HAMLIB_API __cdecl
00036 #    ifdef IN_HAMLIB
00037 #      define BACKEND_IMPEXP HAMLIB_DLL_EXPORT
00038 #      define HAMLIB_IMPEXP HAMLIB_DLL_EXPORT
00039 #    else
00040 #      define BACKEND_IMPEXP HAMLIB_DLL_EXPORT
00041 #      define HAMLIB_IMPEXP HAMLIB_DLL_IMPORT
00042 #    endif
00043 #  else
00044        /* static build, only export the backend entry points for lt_dlsym */
00045 #      define BACKEND_IMPEXP HAMLIB_DLL_EXPORT
00046 #  endif
00047 #endif
00048 
00049 
00050 /* Take care of non-cygwin platforms */
00051 #if !defined(HAMLIB_IMPEXP)
00052 #  define HAMLIB_IMPEXP
00053 #endif
00054 #if !defined(BACKEND_IMPEXP)
00055 #  define BACKEND_IMPEXP
00056 #endif
00057 #if !defined(HAMLIB_API)
00058 #  define HAMLIB_API
00059 #endif
00060 #if !defined(HAMLIB_EXPORT)
00061 #  define HAMLIB_EXPORT(type) HAMLIB_IMPEXP type HAMLIB_API
00062 #endif
00063 #if !defined(HAMLIB_EXPORT_VAR)
00064 #  define HAMLIB_EXPORT_VAR(type) HAMLIB_IMPEXP type
00065 #endif
00066 #if !defined(BACKEND_EXPORT)
00067 #  define BACKEND_EXPORT(type) BACKEND_IMPEXP type HAMLIB_API
00068 #endif
00069 #if !defined(BACKEND_EXPORT_VAR)
00070 #  define BACKEND_EXPORT_VAR(type) BACKEND_IMPEXP type
00071 #endif
00072 
00073 
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines

Generated by doxygen 1.7.5

Hamlib documentation for version 1.2.14 -- Fri Dec 23 2011 23:24:31
Project page: http://www.hamlib.org