1
0
Fork 0

min/max safety

Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3394
This commit is contained in:
Sebastian Strohhäcker 2009-05-17 15:28:05 +00:00
parent 79de511c0e
commit 229c30dd4f
2 changed files with 9 additions and 5 deletions

View file

@ -1,5 +1,5 @@
/*
* Copyright (C) 2002-2007 The DOSBox Team
* Copyright (C) 2002-2009 The DOSBox Team
*
* 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
@ -22,6 +22,10 @@
#include <stdio.h>
#include <stdarg.h>
#ifndef min
#define min(a,b) ((a)<(b)?(a):(b))
#endif
/*
Have to remember where i ripped this code sometime ago.