min/max safety
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3394
This commit is contained in:
parent
79de511c0e
commit
229c30dd4f
2 changed files with 9 additions and 5 deletions
|
@ -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.
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue