forked from FWGS/Paranoia2
43 lines
1.4 KiB
C
43 lines
1.4 KiB
C
/*
|
|
extdll.h - must be included into the all ui files
|
|
Copyright (C) 2010 Uncle Mike
|
|
|
|
This program is free software: you can redistribute it and/or modify
|
|
it under the terms of the GNU General Public License as published by
|
|
the Free Software Foundation, either version 3 of the License, or
|
|
(at your option) any later version.
|
|
|
|
This program is distributed in the hope that it will be useful,
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
GNU General Public License for more details.
|
|
*/
|
|
|
|
#ifndef EXTDLL_H
|
|
#define EXTDLL_H
|
|
|
|
// shut-up compiler warnings
|
|
#pragma warning(disable : 4305) // int or float data truncation
|
|
#pragma warning(disable : 4201) // nameless struct/union
|
|
#pragma warning(disable : 4514) // unreferenced inline function removed
|
|
#pragma warning(disable : 4100) // unreferenced formal parameter
|
|
#pragma warning(disable : 4244) // conversion from 'float' to 'int', possible loss of data
|
|
|
|
#include "windows.h"
|
|
|
|
// Misc C-runtime library headers
|
|
#include <assert.h>
|
|
#include <string.h>
|
|
#include <stdio.h>
|
|
#include <stdlib.h>
|
|
#include <math.h>
|
|
|
|
#define bound( min, num, max ) ((num) >= (min) ? ((num) < (max) ? (num) : (max)) : (min))
|
|
|
|
typedef int (*cmpfunc)( const void *a, const void *b );
|
|
|
|
#define ARRAYSIZE( p ) (sizeof( p ) / sizeof( p[0] ))
|
|
|
|
#include "menu_int.h"
|
|
|
|
#endif//EXTDLL_H
|