9e494add4128801bcc29c46bb8d6c0ab6e0a2a72
[gcc.git] / libjava / include / win32.h
1 // win32.h -- Helper functions for Microsoft-flavored OSs.
2
3 /* Copyright (C) 2002 Free Software Foundation
4
5 This file is part of libgcj.
6
7 This software is copyrighted work licensed under the terms of the
8 Libgcj License. Please consult the file "LIBGCJ_LICENSE" for
9 details. */
10
11 #ifndef __JV_WIN32_H__
12 #define __JV_WIN32_H__
13
14 #include <windows.h>
15 #undef STRICT
16
17 #undef __INSIDE_CYGWIN__
18 #include <winsock.h>
19 #include <gcj/cni.h>
20 #include <java/util/Properties.h>
21
22 // FIXME: remove this once the io.h issue is resolved
23 extern "C" char* getcwd (char*, int);
24
25 extern void _Jv_platform_initialize (void);
26 extern void _Jv_platform_initProperties (java::util::Properties*);
27 extern jlong _Jv_platform_gettimeofday ();
28
29 inline void
30 _Jv_platform_close_on_exec (jint)
31 {
32 // Ignore.
33 }
34
35 #define HAVE_BACKTRACE
36
37 /* Store up to SIZE return address of the current program state in
38 ARRAY and return the exact number of values stored. */
39 extern int backtrace (void **__array, int __size);
40
41 #endif /* __JV_WIN32_H__ */