summary refs log tree commit diff stats
path: root/lib/system
diff options
context:
space:
mode:
authorAdrianV <adrian@veith-system.de>2018-04-15 13:43:01 +0200
committerAndreas Rumpf <rumpf_a@web.de>2018-04-15 13:43:01 +0200
commit0ce28d15cc9aff526a7733e40ae1ae495d4e8e55 (patch)
tree5194210604627fc7117acae8165ca65360638dad /lib/system
parent70c0ff1be21d2a1fda6432fe2e5b7ae0953840ff (diff)
downloadNim-0ce28d15cc9aff526a7733e40ae1ae495d4e8e55.tar.gz
Nim namespace for cpp (#7453)
- new option --usenamespace to generate nim cpp code in its own namespace Nim
- minor changes for compatibility with the new Embarcadero = Borland C++-Builder (bcc)
Diffstat (limited to 'lib/system')
-rw-r--r--lib/system/atomics.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/system/atomics.nim b/lib/system/atomics.nim
index afc435638..fa3700190 100644
--- a/lib/system/atomics.nim
+++ b/lib/system/atomics.nim
@@ -295,7 +295,7 @@ else:
 
 when (defined(x86) or defined(amd64)) and defined(vcc):
   proc cpuRelax* {.importc: "YieldProcessor", header: "<windows.h>".}
-elif (defined(x86) or defined(amd64)) and someGcc:
+elif (defined(x86) or defined(amd64)) and (someGcc or defined(bcc)):
   proc cpuRelax* {.inline.} =
     {.emit: """asm volatile("pause" ::: "memory");""".}
 elif someGcc or defined(tcc):