* @brief PlibC header
* @attention This file is usually not installed under Unix,
* so ship it with your application
- * @version $Revision: 66 $
+ * @version $Revision: 69 $
*/
#ifndef _PLIBC_H_
#include "langinfo.h"
#endif
-#include <windows.h>
+#include <winsock2.h>
#include <ws2tcpip.h>
+#include <windows.h>
#include <sys/types.h>
#include <time.h>
#include <stdio.h>
};
#ifndef pid_t
- #define pid_t HANDLE
+ #define pid_t DWORD
#endif
#ifndef error_t
BOOL _plibc_DereferenceShortcut(char *pszShortcut);
char *plibc_ChooseDir(char *pszTitle, unsigned long ulFlags);
char *plibc_ChooseFile(char *pszTitle, unsigned long ulFlags);
-long QueryRegistry(HKEY hMainKey, char *pszKey, char *pszSubKey,
+long QueryRegistry(HKEY hMainKey, const char *pszKey, const char *pszSubKey,
char *pszBuffer, long *pdLength);
BOOL __win_IsHandleMarkedAsBlocking(int hHandle);
#ifndef WINDOWS
#define DIR_SEPARATOR '/'
#define DIR_SEPARATOR_STR "/"
- #define PATH_SEPARATOR ';'
+ #define PATH_SEPARATOR ':'
#define PATH_SEPARATOR_STR ":"
#define NEWLINE "\n"
#else
#define DIR_SEPARATOR '\\'
#define DIR_SEPARATOR_STR "\\"
- #define PATH_SEPARATOR ':'
+ #define PATH_SEPARATOR ';'
#define PATH_SEPARATOR_STR ";"
#define NEWLINE "\r\n"