diff options
author | Araq <rumpf_a@web.de> | 2013-01-27 00:42:14 +0100 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2013-01-27 00:42:14 +0100 |
commit | 541ba485c265c3b7b5f9908f0def0c38550f6b23 (patch) | |
tree | 38de6713d167cb4768f8a3e160958afae3ad5b4a /lib | |
parent | c77ae9e77d7f0bc5ab5202e9ca1327ddd2a954c0 (diff) | |
download | Nim-541ba485c265c3b7b5f9908f0def0c38550f6b23.tar.gz |
incompleteStruct pragma for C's FILE
Diffstat (limited to 'lib')
-rwxr-xr-x | lib/system.nim | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/system.nim b/lib/system.nim index 26e5ac228..f32b575e9 100755 --- a/lib/system.nim +++ b/lib/system.nim @@ -1,7 +1,7 @@ # # # Nimrod's Runtime Library -# (c) Copyright 2012 Andreas Rumpf +# (c) Copyright 2013 Andreas Rumpf # # See the file "copying.txt", included in this # distribution, for details about the copyright. @@ -1760,8 +1760,7 @@ when not defined(EcmaScript): #and not defined(NimrodVM): # ----------------- IO Part ------------------------------------------------ type - CFile {.importc: "FILE", nodecl, final.} = object # empty record for - # data hiding + CFile {.importc: "FILE", nodecl, final, incompletestruct.} = object TFile* = ptr CFile ## The type representing a file handle. TFileMode* = enum ## The file mode when opening a file. |