diff options
author | nijtmans@users.sourceforge.net <jan.nijtmans> | 2012-05-03 12:31:19 (GMT) |
---|---|---|
committer | nijtmans@users.sourceforge.net <jan.nijtmans> | 2012-05-03 12:31:19 (GMT) |
commit | 17b6e43ab63fe9681ca559dae1e3c5f88250d1dc (patch) | |
tree | 1af98744597d706e888e17d56f9a96c61450f14d /unix/tclUnixPort.h | |
parent | d0da70e413195ed6e2c110ba82a91bf1cf2ea8b3 (diff) | |
parent | 9e55c0ea10ac43020d3b84df0bfd14183f9ce755 (diff) | |
download | tcl-17b6e43ab63fe9681ca559dae1e3c5f88250d1dc.zip tcl-17b6e43ab63fe9681ca559dae1e3c5f88250d1dc.tar.gz tcl-17b6e43ab63fe9681ca559dae1e3c5f88250d1dc.tar.bz2 |
Move cpuid testcase from win-specific to generic tests
Diffstat (limited to 'unix/tclUnixPort.h')
-rw-r--r-- | unix/tclUnixPort.h | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/unix/tclUnixPort.h b/unix/tclUnixPort.h index 33348e2..8b7fab1 100644 --- a/unix/tclUnixPort.h +++ b/unix/tclUnixPort.h @@ -74,12 +74,22 @@ typedef off_t Tcl_SeekOffset; #endif #ifdef __CYGWIN__ -# define WSAEWOULDBLOCK 10035 -# define HINSTANCE void * -# define HANDLE void * + + /* Make some symbols available without including <windows.h> */ # define DWORD unsigned int +# define CP_UTF8 65001 +# define GET_MODULE_HANDLE_EX_FLAG_FROM_ADDRESS 0x00000004 +# define HANDLE void * +# define HINSTANCE void * # define SOCKET unsigned int -# typedef char TCHAR; +# define WSAEWOULDBLOCK 10035 + typedef char TCHAR; + DLLIMPORT extern __stdcall int GetModuleHandleExW(unsigned int, const char *, void *); + DLLIMPORT extern __stdcall int GetModuleFileNameW(void *, const char *, int); + DLLIMPORT extern __stdcall int WideCharToMultiByte(int, int, const char *, int, + const char *, int, const char *, const char *); + + DLLIMPORT extern int cygwin_conv_to_full_posix_path(const char *, char *); # define USE_PUTENV 1 # define USE_PUTENV_FOR_UNSET 1 /* On Cygwin, the environment is imported from the Cygwin DLL. */ |