# HG changeset patch # User Ryan C. Gordon # Date 1316850915 25200 # Node ID 9ba19d71cc4a4dd5c5fafe0de37d09fff75e57f6 # Parent af43226e45e68079a7b5b9b7395a7540021f5d71 Put some include-once and extern "C" blocks in the extras' headers. diff -r af43226e45e6 -r 9ba19d71cc4a extras/globbing.h --- a/extras/globbing.h Thu Sep 22 04:45:04 2011 -0400 +++ b/extras/globbing.h Sat Sep 24 00:55:15 2011 -0700 @@ -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_EnumFilesCallback c, void *d); +#ifdef __cplusplus +} +#endif + +#endif /* include-once blocker. */ + /* end of globbing.h ... */ diff -r af43226e45e6 -r 9ba19d71cc4a extras/ignorecase.h --- a/extras/ignorecase.h Thu Sep 22 04:45:04 2011 -0400 +++ b/extras/ignorecase.h Sat Sep 24 00:55:15 2011 -0700 @@ -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 ... */