forked from 0ad/0ad
janwas
a34b759720
. timer, config: fix definition of ALLOW_RDTSC . add movsx_be64 (for whirlpool), revise implementation, move to byte_order, add test . MAX -> std::max, remove those macros . add timestamp to system_info as requested by philip This was SVN commit r5050.
16 lines
450 B
C
16 lines
450 B
C
#ifndef INCLUDED_WPOSIX_INTERNAL
|
|
#define INCLUDED_WPOSIX_INTERNAL
|
|
|
|
#include "lib/sysdep/win/win.h"
|
|
#include "lib/sysdep/win/winit.h"
|
|
#include "lib/sysdep/win/wutil.h"
|
|
|
|
// cast intptr_t to HANDLE; centralized for easier changing, e.g. avoiding
|
|
// warnings. i = -1 converts to INVALID_HANDLE_VALUE (same value).
|
|
inline HANDLE HANDLE_from_intptr(intptr_t i)
|
|
{
|
|
return (HANDLE)((char*)0 + i);
|
|
}
|
|
|
|
#endif // #ifndef INCLUDED_WPOSIX_INTERNAL
|