DWORD dwAccessMask);
char *winErrorStr (const char *prefix, int dwErr);
- void GNInitWinEnv ();
+ int GNInitWinEnv ();
void GNShutdownWinEnv ();
#ifdef __cplusplus
{
GNUNET_stderr = stderr;
#ifdef MINGW
- InitWinEnv (NULL);
+ GNInitWinEnv (NULL);
#endif
}
void __attribute__ ((destructor)) GNUNET_util_cl_fini ()
{
#ifdef MINGW
- ShutdownWinEnv ();
+ GNShutdownWinEnv ();
#endif
}
initMachCpuStats ();
updateUsage (); /* initialize */
#elif MINGW
- InitWinEnv (NULL);
+ GNInitWinEnv (NULL);
updateUsage (); /* initialize */
#else
updateUsage (); /* initialize */
#elif defined(DARWIN)
GNUNET_free_non_null (prev_cpu_load);
#elif MINGW
- ShutdownWinEnv ();
+ GNShutdownWinEnv ();
#endif
}
* @return Error code from winerror.h, ERROR_SUCCESS on success
*/
int
-InitWinEnv ()
+GNInitWinEnv ()
{
int ret;
* Clean up Windows environment
*/
void
-ShutdownWinEnv ()
+GNShutdownWinEnv ()
{
plibc_shutdown ();