1. corrected HAVE_PW_GECOS detection in configure (which never worked)
2. added and documented wxGetFreeMemory() for Unix (Linux/Solaris only) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@6861 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -474,10 +474,12 @@ static void TestOsInfo()
|
||||
printf("Running under: %s, version %d.%d\n",
|
||||
wxGetOsDescription().c_str(), major, minor);
|
||||
|
||||
printf("%d free bytes of memory left.\n", wxGetFreeMemory());
|
||||
printf("%ld free bytes of memory left.\n", wxGetFreeMemory());
|
||||
|
||||
printf("Host name is %s (%s).\n",
|
||||
wxGetHostName().c_str(), wxGetFullHostName().c_str());
|
||||
|
||||
puts("");
|
||||
}
|
||||
|
||||
static void TestUserInfo()
|
||||
@@ -488,6 +490,8 @@ static void TestUserInfo()
|
||||
printf("User name is:\t%s\n", wxGetUserName().c_str());
|
||||
printf("Home dir is:\t%s\n", wxGetHomeDir().c_str());
|
||||
printf("Email address:\t%s\n", wxGetEmailAddress().c_str());
|
||||
|
||||
puts("");
|
||||
}
|
||||
|
||||
#endif // TEST_INFO_FUNCTIONS
|
||||
|
Reference in New Issue
Block a user