]> granicus.if.org Git - apache/commitdiff
* Prevent multiple "execution" of ap_expr.h contents when included multiple
authorRuediger Pluem <rpluem@apache.org>
Sat, 29 Mar 2008 22:29:39 +0000 (22:29 +0000)
committerRuediger Pluem <rpluem@apache.org>
Sat, 29 Mar 2008 22:29:39 +0000 (22:29 +0000)
  times and allow it to be included by C++ files.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@642630 13f79535-47bb-0310-9956-ffa450edef68

include/ap_expr.h

index bb26d2ac780a578cfa51df852e26c78839d820c0..6812bb7b846347eccc391fb8b4483ac927dad054 100644 (file)
  * limitations under the License.
  */
 
+#ifndef AP_EXPR_H
+#define AP_EXPR_H
+
 #include "httpd.h"
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 /* conditional expression parser stuff */
 typedef enum {
     TOKEN_STRING,
@@ -101,3 +108,9 @@ AP_DECLARE(int) ap_expr_evalstring(request_rec *r, const char *expr,
                                    int *was_error, backref_t **reptr,
                                    string_func_t string_func,
                                    opt_func_t eval_func);
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif /* AP_EXPR_H */