cave-story-solaris/src/WindowsWrapper.h
Clownacy 9948fa8b07 Move the SDL_Window creation to the rendering backends
Whoops, didn't mean to commit the Main.cpp edit way back when I made
the OpenGL 2.1 backend.
2019-07-24 20:20:06 +01:00

41 lines
506 B
C

#pragma once
#ifdef WINDOWS
#include <Windows.h>
// Avoid name collisions
#undef DrawText
#undef FindResource
#undef CreateWindow
#else
typedef int HWND;
typedef int BOOL;
#ifndef FALSE
#define FALSE 0
#endif
#ifndef TRUE
#define TRUE 1
#endif
struct RECT
{
long left;
long top;
long right;
long bottom;
};
#endif
#define SET_RECT(rect, l, t, r, b) \
rect.left = l; \
rect.top = t; \
rect.right = r; \
rect.bottom = b;
int rep_rand();
void rep_srand(unsigned int seed);
BOOL SystemTask();