No DbgHelp.h

develop
Petr Mrázek 2011-03-12 11:01:53 +01:00
parent 4e3a66fcd8
commit b6d02768b4
2 changed files with 2 additions and 5 deletions

@ -61,19 +61,16 @@ namespace DFHack
{
return DFCoord(x,y,z+number);
}
// this is a clever hack. beware.
// this is a hack. beware.
// x,y,z share the same space with comparate. comparate can be used for fast comparisons
union
{
#pragma pack(push) /* push current alignment to stack */
#pragma pack(2) /* set alignment to 2 byte boundary */
struct
{
uint16_t x;
uint16_t y;
uint32_t z;
};
#pragma pack (pop) /* restore alignment */
uint64_t comparate;
};
};

@ -81,7 +81,7 @@ using namespace std;
#include <winnt.h>
#include <psapi.h>
#include <tlhelp32.h>
#include <Dbghelp.h>
//#include <Dbghelp.h> // NOT present in mingw32
typedef LONG NTSTATUS;
#define STATUS_SUCCESS ((NTSTATUS)0x00000000L)