nginxconfig
C++libraryforparsingandprintingnginx.conf
nginxconfig/config.hpp
Go to the documentation of this file.
00001 
00011 #ifndef __NGINXCONFIG_CONFIG_HPP_INCLUDED__
00012 #define __NGINXCONFIG_CONFIG_HPP_INCLUDED__
00013 
00017 #ifdef NGINXCONFIG_USER_CONFIG
00018 #   include NGINXCONFIG_USER_CONFIG
00019 #endif
00020 
00024 #ifndef NGINXCONFIG_SO
00025 #   define NGINXCONFIG_SO 1
00026 #endif
00027 
00032 #ifndef NGINXCONFIG_COMPILING
00033 #   define NGINXCONFIG_COMPILING 0
00034 #endif
00035 
00047 #if NGINXCONFIG_SO
00048 #   if defined(__GNUC__)
00049 #       define NGINXCONFIG_EXPORT          __attribute__((visibility("default")))
00050 #       define NGINXCONFIG_IMPORT
00051 #       define NGINXCONFIG_HIDDEN          __attribute__((visibility("hidden")))
00052 #   elif defined(__MSC_VER)
00053 #       define NGINXCONFIG_EXPORT          __declspec(dllexport)
00054 #       define NGINXCONFIG_IMPORT          __declspec(dllimport)
00055 #       define NGINXCONFIG_HIDDEN
00056 #   else
00057 #       error "Unknown shared object semantics for this compiler."
00058 #   endif
00059 #else
00060 #   define NGINXCONFIG_EXPORT
00061 #   define NGINXCONFIG_IMPORT
00062 #   define NGINXCONFIG_HIDDEN
00063 #endif
00064 
00074 #if NGINXCONFIG_COMPILING
00075 #   define NGINXCONFIG_PUBLIC NGINXCONFIG_EXPORT
00076 #   define NGINXCONFIG_LOCAL  NGINXCONFIG_HIDDEN
00077 #else
00078 #   define NGINXCONFIG_PUBLIC NGINXCONFIG_IMPORT
00079 #   define NGINXCONFIG_LOCAL  NGINXCONFIG_HIDDEN
00080 #endif
00081 
00086 #ifndef NGINXCONFIG_NO_RETURN
00087 #   if defined(__GNUC__)
00088 #       define NGINXCONFIG_NO_RETURN __attribute__((noreturn))
00089 #   else
00090 #       define NGINXCONFIG_NO_RETURN
00091 #   endif
00092 #endif
00093 
00094 #endif/*__NGINXCONFIG_CONFIG_HPP_INCLUDED__*/
 All Classes Files Functions Variables Friends Defines