From 9818f6f06bd234ce8c03deff7f84e22244c75453 Mon Sep 17 00:00:00 2001 From: Martin Reinecke Date: Thu, 6 Sep 2012 16:24:37 +0200 Subject: [PATCH] guard another file against inclusion in C++ code --- libsharp/sharp_complex_hacks.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libsharp/sharp_complex_hacks.h b/libsharp/sharp_complex_hacks.h index d06741e..70f8ffb 100644 --- a/libsharp/sharp_complex_hacks.h +++ b/libsharp/sharp_complex_hacks.h @@ -32,6 +32,10 @@ #ifndef SHARP_COMPLEX_HACKS_H #define SHARP_COMPLEX_HACKS_H +#ifdef __cplusplus +#error This header file cannot be included from C++, only from C +#endif + #include #include #include "sharp_vecsupport.h"