dsapi_cdecl.h

00001 /* Emacs mode: -*- C -*- */
00002 
00003 /* 
00004  * Copyright (c) 2004-2005, Isode Limited, London, England.
00005  * All rights reserved.
00006  *
00007  * Acquisition and use of this software and related materials for any
00008  * purpose requires a written licence agreement from Isode
00009  * Limited, or a written licence from an organisation licenced by Isode
00010  * Limited to grant such a licence.
00011  *
00012  */
00013 
00014 /*
00015  * dsapi_cdecl.h
00016  *
00017  */
00018 
00019 /* 
00020  * $RCSfile: dsapi_cdecl.h,v $ $Revision: 1.4 $ $State: Exp $
00021  *
00022  * $Log: dsapi_cdecl.h,v $
00023  * Revision 1.4  2005/05/25 16:06:47  dbw
00024  * T050525C - Add or update copyright for 2005
00025  *
00026  * Revision 1.3  2005/05/16 14:51:59  dsm
00027  * T050516P - Remove references to Isode internal header files.
00028  *
00029  * Revision 1.2  2005/02/15 12:47:20  cjr
00030  * T050215A - Fix damage from T050207B.
00031  *
00032  * Revision 1.1  2005/01/24 17:20:00  dsm
00033  * T050124B - Initial revision.
00034  *
00035  *
00036  */
00037 
00038 #ifndef ISODE_DSAPI_CDECL_H
00039 #define ISODE_DSAPI_CDECL_H
00040 
00041 #ifdef __cplusplus
00042 
00043  #define DSAPI_CDECL extern "C" 
00044  #define DSAPI_CSPEC extern "C"
00045  #define DSAPI_CTYPE "C"
00046 
00047 #else
00048 
00049  #define DSAPI_CDECL extern
00050  #define DSAPI_CSPEC
00051  #define DSAPI_CTYPE
00052 
00053 #endif
00054 
00055 #ifdef _WIN32
00056 
00057 # ifdef DSAPI
00058 #  define LIBDSAPI_CDECL DSAPI_CSPEC __declspec(dllexport)
00059 # else
00060 #  define LIBDSAPI_CDECL DSAPI_CSPEC __declspec(dllimport)
00061 # endif
00062 
00063 #else 
00064 
00065 # define LIBDSAPI_CDECL extern DSAPI_CTYPE
00066 
00067 #endif
00068 
00069 #endif 
Copyright © 2008 Isode privacy   feedback Subscribe to our rss newsfeed