From 9d1ef087a90817653999d433aa4c6b6a35351a9b Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Sat, 24 Sep 2011 00:55:15 -0700 Subject: [PATCH] Put some include-once and extern "C" blocks in the extras' headers. --- extras/globbing.h | 12 ++++++++++++ extras/ignorecase.h | 12 ++++++++++++ 2 files changed, 24 insertions(+) diff --git a/extras/globbing.h b/extras/globbing.h index 795f7f93..4cfe25de 100644 --- a/extras/globbing.h +++ b/extras/globbing.h @@ -1,3 +1,6 @@ +#ifndef INCL_PHYSFSEXT_GLOBBING_H +#define INCL_PHYSFSEXT_GLOBBING_H + /** \file globbing.h */ #include "physfs.h" @@ -32,6 +35,9 @@ * \author Ryan C. Gordon. */ +#ifdef __cplusplus +extern "C" { +#endif /** * \fn char **PHYSFS_enumerateFilesWildcard(const char *dir, const char *wildcard, int caseSensitive) @@ -149,5 +155,11 @@ PHYSFS_DECL void PHYSFSEXT_enumerateFilesCallbackWildcard(const char *dir, PHYSFS_EnumFilesCallback c, void *d); +#ifdef __cplusplus +} +#endif + +#endif /* include-once blocker. */ + /* end of globbing.h ... */ diff --git a/extras/ignorecase.h b/extras/ignorecase.h index 1d983551..f1188636 100644 --- a/extras/ignorecase.h +++ b/extras/ignorecase.h @@ -1,3 +1,6 @@ +#ifndef INCL_PHYSFSEXT_IGNORECASE_H +#define INCL_PHYSFSEXT_IGNORECASE_H + /** \file ignorecase.h */ /** @@ -44,6 +47,9 @@ * \author Ryan C. Gordon. */ +#ifdef __cplusplus +extern "C" { +#endif /** * \fn int PHYSFSEXT_locateCorrectCase(char *buf) @@ -71,5 +77,11 @@ */ int PHYSFSEXT_locateCorrectCase(char *buf); +#ifdef __cplusplus +} +#endif + +#endif /* include-once blocker. */ + /* end of ignorecase.h ... */