summary refs log tree commit diff stats
path: root/compiler
diff options
context:
space:
mode:
Diffstat (limited to 'compiler')
-rw-r--r--compiler/cgen.nim1
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/cgen.nim b/compiler/cgen.nim
index c829a463e..ebdbffa5a 100644
--- a/compiler/cgen.nim
+++ b/compiler/cgen.nim
@@ -604,6 +604,7 @@ proc generateHeaders(m: BModule) =
     else:
       addf(m.s[cfsHeaders], "#include $1$N", [rope(it)])
   add(m.s[cfsHeaders], "#undef linux" & tnl)
+  add(m.s[cfsHeaders], "#undef near" & tnl)
 
 proc initFrame(p: BProc, procname, filename: Rope): Rope =
   discard cgsym(p.module, "nimFrame")