455cd615c2
2002-04-07 Adam King <aking@dreammechanics.com> * java/lang/natSystem.cc (init_properties): Call new function _Jv_platform_initProperties. * win32 (_Jv_platform_initProperties): New function that adds Win32 support for the System properties os.name, os.arch, os.version, user.name, user.home, and user.dir. * include/posix.h, include/win32.h, posix.cc: New function _Jv_platform_initProperties. From-SVN: r51989
33 lines
716 B
C
33 lines
716 B
C
// win32.h -- Helper functions for Microsoft-flavored OSs.
|
|
|
|
/* Copyright (C) 2002 Free Software Foundation
|
|
|
|
This file is part of libgcj.
|
|
|
|
This software is copyrighted work licensed under the terms of the
|
|
Libgcj License. Please consult the file "LIBGCJ_LICENSE" for
|
|
details. */
|
|
|
|
#ifndef __JV_WIN32_H__
|
|
#define __JV_WIN32_H__
|
|
|
|
#include <windows.h>
|
|
#undef STRICT
|
|
|
|
#undef __INSIDE_CYGWIN__
|
|
#include <winsock.h>
|
|
#include <gcj/cni.h>
|
|
#include <java/util/Properties.h>
|
|
|
|
extern void _Jv_platform_initialize (void);
|
|
extern void _Jv_platform_initProperties (java::util::Properties*);
|
|
extern jlong _Jv_platform_gettimeofday ();
|
|
|
|
inline void
|
|
_Jv_platform_close_on_exec (jint)
|
|
{
|
|
// Ignore.
|
|
}
|
|
|
|
#endif /* __JV_WIN32_H__ */
|