zink: squashme: trade cplusplus wrapper for header-guard
authorErik Faye-Lund <erik.faye-lund@collabora.com>
Mon, 24 Jun 2019 09:54:30 +0000 (11:54 +0200)
committerErik Faye-Lund <erik.faye-lund@collabora.com>
Mon, 28 Oct 2019 08:51:45 +0000 (08:51 +0000)
Acked-by: Jordan Justen <jordan.l.justen@intel.com>
src/gallium/drivers/zink/nir_to_spirv/nir_to_spirv.h

index 55a0e01e07910dac2dba14083fc5e71520f71e87..758ca901a2de44133ca5652a39210936eeced381 100644 (file)
@@ -21,9 +21,8 @@
  * USE OR OTHER DEALINGS IN THE SOFTWARE.
  */
 
-#ifdef __cplusplus
-extern "C" {
-#endif
+#ifndef NIR_TO_SPIRV_H
+#define NIR_TO_SPIRV_H
 
 #include <stdlib.h>
 #include <stdint.h>
@@ -42,6 +41,4 @@ nir_to_spirv(struct nir_shader *s);
 void
 spirv_shader_delete(struct spirv_shader *s);
 
-#ifdef __cplusplus
-}
 #endif