CNF: Silence pointer fix-up message unless gc debugging is enabled
[ghc.git] / rts / RtsSymbols.h
index dab2373..650b1f5 100644 (file)
@@ -6,13 +6,13 @@
  *
  * ---------------------------------------------------------------------------*/
 
-#ifndef RTS_SYMBOLS_H
-#define RTS_SYMBOLS_H
+#pragma once
 
 #include "ghcautoconf.h"
 #include "LinkerInternals.h"
+#include <stdbool.h>
 
-#ifdef LEADING_UNDERSCORE
+#if defined(LEADING_UNDERSCORE)
 #define MAYBE_LEADING_UNDERSCORE_STR(s) ("_" s)
 #else
 #define MAYBE_LEADING_UNDERSCORE_STR(s) (s)
@@ -21,8 +21,7 @@
 typedef struct _RtsSymbolVal {
     const SymbolName* lbl;
     SymbolAddr* addr;
+    bool weak;
 } RtsSymbolVal;
 
 extern RtsSymbolVal rtsSyms[];
-
-#endif /* RTS_SYMBOLS_H */