Permalink
Browse files

added include guards

  • Loading branch information...
1 parent decbd3d commit 941ec1e2db3e1ad395925ff5c5dffaeb5f890689 @ettore committed Jul 17, 2012
Showing with 30 additions and 1 deletion.
  1. +5 −0 clcg_bundle_utils.h
  2. +5 −0 clcg_device_utils.h
  3. +4 −1 clcg_macros.h
  4. +4 −0 clcg_str_utils.h
  5. +12 −0 clcg_time_utils.h
View
@@ -24,6 +24,9 @@
// POSSIBILITY OF SUCH DAMAGE.
+#ifndef CLCG_BUNDLE_UTILS_H_
+#define CLCG_BUNDLE_UTILS_H_
+
#import <AudioToolbox/AudioToolbox.h>
#define CLCG_LOC(key) \
@@ -38,3 +41,5 @@
* AudioServicesDisposeSystemSoundID().
*/
SystemSoundID clcg_create_short_snd(NSString *filename, NSString *ext);
+
+#endif //ifndef CLCG_BUNDLE_UTILS_H_
View
@@ -23,6 +23,9 @@
// POSSIBILITY OF SUCH DAMAGE.
+#ifndef CLCG_DEVICE_UTILS_H_
+#define CLCG_DEVICE_UTILS_H_
+
#ifdef __cplusplus
extern "C" {
#endif
@@ -63,3 +66,5 @@ extern "C" {
#ifdef __cplusplus
}
#endif
+
+#endif
View
@@ -24,6 +24,9 @@
// POSSIBILITY OF SUCH DAMAGE.
+#ifndef CLCG_MACROS_H_
+#define CLCG_MACROS_H_
+
/**
* Borrowed from Apple's AvailabiltyInternal.h header. There's no reason why we
* shouldn't be able to use this macro, as it's a gcc-supported flag.
@@ -50,5 +53,5 @@
*/
#define IS_MASK_SET(value, flag) (((value) & (flag)) == (flag))
-
+#endif //ifdef CLCG_LMACROS_H
View
@@ -22,6 +22,8 @@
// ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
// POSSIBILITY OF SUCH DAMAGE.
+#ifndef CLCG_STR_UTILS_H_
+#define CLCG_STR_UTILS_H_
#ifdef __cplusplus
extern "C" {
@@ -55,3 +57,5 @@ extern "C" {
#ifdef __cplusplus
}
#endif
+
+#endif
View
@@ -23,10 +23,22 @@
// ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
// POSSIBILITY OF SUCH DAMAGE.
+#ifndef CLCG_TIME_UTILS_H_
+#define CLCG_TIME_UTILS_H_
+
+#ifdef __cplusplus
+extern "C" {
+#endif
#define CLCG_MINUTE 60
#define CLCG_HOUR (60 * CLCG_MINUTE)
#define CLCG_DAY (24 * CLCG_HOUR)
#define CLCG_WEEK (7 * CLCG_DAY)
#define CLCG_MONTH (30.5 * CLCG_DAY)
#define CLCG_YEAR (365 * CLCG_DAY)
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif

0 comments on commit 941ec1e

Please sign in to comment.