Add "extern C {...} to header files for C++ builds.
[freeradius.git] / src / include / token.h
index 3a71d18..8b5c24d 100644 (file)
 #include <freeradius-devel/ident.h>
 RCSIDH(token_h, "$Id$")
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 typedef enum fr_token_t {
   T_OP_INVALID = 0,            /* invalid token */
   T_EOL,                       /* end of line */
@@ -76,4 +80,8 @@ int           getbareword (const char **ptr, char *buf, int buflen);
 FR_TOKEN       gettoken(const char **ptr, char *buf, int buflen);
 FR_TOKEN       getstring(const char **ptr, char *buf, int buflen);
 
+#ifdef __cplusplus
+}
+#endif
+
 #endif /* FR_TOKEN_H */