]> gitweb.factorcode.org Git - factor.git/commitdiff
fix environment on winnt
authorDoug Coleman <doug.coleman@gmail.com>
Sun, 30 Aug 2009 01:01:01 +0000 (20:01 -0500)
committerDoug Coleman <doug.coleman@gmail.com>
Sun, 30 Aug 2009 01:01:01 +0000 (20:01 -0500)
basis/environment/winnt/winnt.factor

index eb90a36ee7168a11044c904e288fe794ad25bd8e..d4ce25397c88b311b3e3eedd11d3b0106dc3a2ad 100644 (file)
@@ -6,8 +6,10 @@ alien.c-types sequences windows.errors io.streams.memory
 io.encodings io ;
 IN: environment.winnt
 
+<< "TCHAR" require-c-type-arrays >>
+
 M: winnt os-env ( key -- value )
-    MAX_UNICODE_PATH "TCHAR" <c-array>
+    MAX_UNICODE_PATH "TCHAR" <c-type-array>
     [ dup length GetEnvironmentVariable ] keep over 0 = [
         2drop f
     ] [