Back to home page

EIC code displayed by LXR

 
 

    


Warning, file /include/event2/visibility.h was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).

0001 /* -*- Mode: C; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */
0002 /*
0003  * Copyright (c) 2007-2012 Niels Provos and Nick Mathewson
0004  *
0005  * Redistribution and use in source and binary forms, with or without
0006  * modification, are permitted provided that the following conditions
0007  * are met:
0008  * 1. Redistributions of source code must retain the above copyright
0009  *    notice, this list of conditions and the following disclaimer.
0010  * 2. Redistributions in binary form must reproduce the above copyright
0011  *    notice, this list of conditions and the following disclaimer in the
0012  *    documentation and/or other materials provided with the distribution.
0013  * 3. The name of the author may not be used to endorse or promote products
0014  *    derived from this software without specific prior written permission.
0015  *
0016  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
0017  * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
0018  * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
0019  * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
0020  * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
0021  * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
0022  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
0023  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
0024  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
0025  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
0026  */
0027 #ifndef EVENT2_VISIBILITY_H_INCLUDED_
0028 #define EVENT2_VISIBILITY_H_INCLUDED_
0029 
0030 #include <event2/event-config.h>
0031 
0032 #if defined(event_shared_EXPORTS) || \
0033     defined(event_extra_shared_EXPORTS) || \
0034     defined(event_core_shared_EXPORTS) || \
0035     defined(event_pthreads_shared_EXPORTS) || \
0036     defined(event_openssl_shared_EXPORTS)
0037 
0038 # if defined (__SUNPRO_C) && (__SUNPRO_C >= 0x550)
0039 #  define EVENT2_EXPORT_SYMBOL __global
0040 # elif defined __GNUC__
0041 #  define EVENT2_EXPORT_SYMBOL __attribute__ ((visibility("default")))
0042 # elif defined(_MSC_VER)
0043 #  define EVENT2_EXPORT_SYMBOL __declspec(dllexport)
0044 # else
0045 #  define EVENT2_EXPORT_SYMBOL /* unknown compiler */
0046 # endif
0047 
0048 #else /* event_*_EXPORTS */
0049 
0050 # define EVENT2_EXPORT_SYMBOL
0051 
0052 #endif /* event_*_EXPORTS */
0053 
0054 /** We need to dllimport event_debug_logging_mask_ into event_extra */
0055 #if defined(_MSC_VER)
0056 # if defined(event_core_shared_EXPORTS) /** from core export */
0057 #  define EVENT2_CORE_EXPORT_SYMBOL __declspec(dllexport)
0058 # elif defined(event_extra_shared_EXPORTS) || /** from extra import */ \
0059        defined(EVENT_VISIBILITY_WANT_DLLIMPORT)
0060 #  define EVENT2_CORE_EXPORT_SYMBOL __declspec(dllimport)
0061 # endif
0062 #endif /* _MSC_VER */
0063 #if !defined(EVENT2_CORE_EXPORT_SYMBOL)
0064 # define EVENT2_CORE_EXPORT_SYMBOL EVENT2_EXPORT_SYMBOL
0065 #endif
0066 
0067 #endif /* EVENT2_VISIBILITY_H_INCLUDED_ */