op_reg_common.h: Add guard to only expand once
authorKarl Williamson <public@khwilliamson.com>
Sun, 26 Dec 2010 17:30:12 +0000 (10:30 -0700)
committerKarl Williamson <public@khwilliamson.com>
Sun, 16 Jan 2011 23:36:43 +0000 (16:36 -0700)
This is in preparation for adding some in-line functions.

op_reg_common.h

index 5b49ec7..238d7bd 100644 (file)
@@ -19,6 +19,8 @@
  * and memory.  I (khw) think the code will work if changed back, but haven't
  * tested it */
 /* Make sure to update lib/re.pm when changing this! */
+#ifndef RXf_PMf_STD_PMMOD_SHIFT /* Only expand #include of this file once */
+
 #define RXf_PMf_STD_PMMOD_SHIFT 0
 
 /* The bits need to be ordered so that the msix are contiguous starting at bit
@@ -63,3 +65,5 @@
                             & (~((1 << RXf_PMf_STD_PMMOD_SHIFT)-1)))
 #   error RXf_PMf_COMPILETIME is invalid
 #endif
+
+#endif /* Include only once */