summary refs log tree commit diff stats
path: root/lib/system.nim
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2021-07-16 15:50:02 +0200
committerGitHub <noreply@github.com>2021-07-16 15:50:02 +0200
commit96a7f9b31c84f14906b201d5e3b17c93d3878af6 (patch)
tree490e0e843a7525eb1ef41967be59065e85cfc4d5 /lib/system.nim
parent089e741ce4cd1249afd518aa30821309f5b2f8e9 (diff)
downloadNim-96a7f9b31c84f14906b201d5e3b17c93d3878af6.tar.gz
deprecate cuchar, don't redefine it (#18505)
Diffstat (limited to 'lib/system.nim')
-rw-r--r--lib/system.nim4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/system.nim b/lib/system.nim
index 8aa9bd718..57d620e57 100644
--- a/lib/system.nim
+++ b/lib/system.nim
@@ -1427,8 +1427,8 @@ type # these work for most platforms:
     ## This is the same as the type `long double` in *C*.
     ## This C type is not supported by Nim's code generator.
 
-  cuchar* {.importc: "unsigned char", nodecl.} = uint8
-    ## This is the same as the type `unsigned char` in *C*.
+  cuchar* {.importc: "unsigned char", nodecl, deprecated: "use `char` or `uint8` instead".} = char
+    ## Deprecated: Use `uint8` instead.
   cushort* {.importc: "unsigned short", nodecl.} = uint16
     ## This is the same as the type `unsigned short` in *C*.
   cuint* {.importc: "unsigned int", nodecl.} = uint32