OLD | NEW |
1 // Copyright (c) 2016, the Fletch project authors. Please see the AUTHORS file | 1 // Copyright (c) 2016, the Dartino project authors. Please see the AUTHORS file |
2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
3 // BSD-style license that can be found in the LICENSE.md file. | 3 // BSD-style license that can be found in the LICENSE.md file. |
4 | 4 |
5 #if defined(FLETCH_TARGET_OS_WIN) | 5 #if defined(FLETCH_TARGET_OS_WIN) |
6 | 6 |
7 #include "src/vm/natives.h" | 7 #include "src/vm/natives.h" |
8 | 8 |
9 #include <direct.h> | 9 #include <direct.h> |
10 | 10 |
11 #include "src/shared/platform.h" | 11 #include "src/shared/platform.h" |
(...skipping 13 matching lines...) Expand all Loading... |
25 } | 25 } |
26 Object* result = process->NewStringFromAscii(List<const char>(path, length)); | 26 Object* result = process->NewStringFromAscii(List<const char>(path, length)); |
27 free(buffer); | 27 free(buffer); |
28 return result; | 28 return result; |
29 } | 29 } |
30 END_NATIVE() | 30 END_NATIVE() |
31 | 31 |
32 } // namespace fletch | 32 } // namespace fletch |
33 | 33 |
34 #endif // defined FLETCH_TARGET_OS_WIN | 34 #endif // defined FLETCH_TARGET_OS_WIN |
OLD | NEW |