summaryrefslogtreecommitdiffstats
path: root/build-aux/c++defs.h
diff options
context:
space:
mode:
authorTon Voon <ton.voon@opsera.com>2010-06-17 09:16:43 (GMT)
committertonvoon <ton.voon@opsera.com>2010-06-23 13:30:34 (GMT)
commit18f6835edaf7d640a2c9e476cb1babdbdadbfd9b (patch)
treeae11f40e48dc34658445c99012726f32bfb45c56 /build-aux/c++defs.h
parentf61412478ceb7c821793c8356b936f64066508bf (diff)
downloadmonitoring-plugins-18f6835edaf7d640a2c9e476cb1babdbdadbfd9b.tar.gz
Added state retention APIs. Implemented for check_snmp with --rate option.
See http://nagiosplugin.org/c-api-private for more details on the API. Also updated check_snmp -l option to change the perfdata label.
Diffstat (limited to 'build-aux/c++defs.h')
-rw-r--r--build-aux/c++defs.h36
1 files changed, 28 insertions, 8 deletions
diff --git a/build-aux/c++defs.h b/build-aux/c++defs.h
index 7d71089..0c2fad7 100644
--- a/build-aux/c++defs.h
+++ b/build-aux/c++defs.h
@@ -221,10 +221,20 @@
221 _GL_CXXALIASWARN_1 (func, GNULIB_NAMESPACE) 221 _GL_CXXALIASWARN_1 (func, GNULIB_NAMESPACE)
222# define _GL_CXXALIASWARN_1(func,namespace) \ 222# define _GL_CXXALIASWARN_1(func,namespace) \
223 _GL_CXXALIASWARN_2 (func, namespace) 223 _GL_CXXALIASWARN_2 (func, namespace)
224# define _GL_CXXALIASWARN_2(func,namespace) \ 224/* To work around GCC bug <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43881>,
225 _GL_WARN_ON_USE (func, \ 225 we enable the warning only when not optimizing. */
226 "The symbol ::" #func " refers to the system function. " \ 226# if !__OPTIMIZE__
227 "Use " #namespace "::" #func " instead.") 227# define _GL_CXXALIASWARN_2(func,namespace) \
228 _GL_WARN_ON_USE (func, \
229 "The symbol ::" #func " refers to the system function. " \
230 "Use " #namespace "::" #func " instead.")
231# elif __GNUC__ >= 3 && GNULIB_STRICT_CHECKING
232# define _GL_CXXALIASWARN_2(func,namespace) \
233 extern __typeof__ (func) func
234# else
235# define _GL_CXXALIASWARN_2(func,namespace) \
236 _GL_EXTERN_C int _gl_cxxalias_dummy
237# endif
228#else 238#else
229# define _GL_CXXALIASWARN(func) \ 239# define _GL_CXXALIASWARN(func) \
230 _GL_EXTERN_C int _gl_cxxalias_dummy 240 _GL_EXTERN_C int _gl_cxxalias_dummy
@@ -239,10 +249,20 @@
239 GNULIB_NAMESPACE) 249 GNULIB_NAMESPACE)
240# define _GL_CXXALIASWARN1_1(func,rettype,parameters_and_attributes,namespace) \ 250# define _GL_CXXALIASWARN1_1(func,rettype,parameters_and_attributes,namespace) \
241 _GL_CXXALIASWARN1_2 (func, rettype, parameters_and_attributes, namespace) 251 _GL_CXXALIASWARN1_2 (func, rettype, parameters_and_attributes, namespace)
242# define _GL_CXXALIASWARN1_2(func,rettype,parameters_and_attributes,namespace) \ 252/* To work around GCC bug <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43881>,
243 _GL_WARN_ON_USE_CXX (func, rettype, parameters_and_attributes, \ 253 we enable the warning only when not optimizing. */
244 "The symbol ::" #func " refers to the system function. " \ 254# if !__OPTIMIZE__
245 "Use " #namespace "::" #func " instead.") 255# define _GL_CXXALIASWARN1_2(func,rettype,parameters_and_attributes,namespace) \
256 _GL_WARN_ON_USE_CXX (func, rettype, parameters_and_attributes, \
257 "The symbol ::" #func " refers to the system function. " \
258 "Use " #namespace "::" #func " instead.")
259# elif __GNUC__ >= 3 && GNULIB_STRICT_CHECKING
260# define _GL_CXXALIASWARN1_2(func,rettype,parameters_and_attributes,namespace) \
261 extern __typeof__ (func) func
262# else
263# define _GL_CXXALIASWARN1_2(func,rettype,parameters_and_attributes,namespace) \
264 _GL_EXTERN_C int _gl_cxxalias_dummy
265# endif
246#else 266#else
247# define _GL_CXXALIASWARN1(func,rettype,parameters_and_attributes) \ 267# define _GL_CXXALIASWARN1(func,rettype,parameters_and_attributes) \
248 _GL_EXTERN_C int _gl_cxxalias_dummy 268 _GL_EXTERN_C int _gl_cxxalias_dummy