summaryrefslogtreecommitdiff
path: root/libpcsxcore/pgxp_gte.h
diff options
context:
space:
mode:
Diffstat (limited to 'libpcsxcore/pgxp_gte.h')
-rw-r--r--libpcsxcore/pgxp_gte.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/libpcsxcore/pgxp_gte.h b/libpcsxcore/pgxp_gte.h
index cc38ade1..845ee06d 100644
--- a/libpcsxcore/pgxp_gte.h
+++ b/libpcsxcore/pgxp_gte.h
@@ -60,5 +60,8 @@ void PGXP_GTE_SWC2(u32 instr, u32 rtVal, u32 addr); // copy GTE reg to memory
#ifndef max
# define max(a, b) ((a) > (b) ? (a) : (b))
#endif
+#ifndef min
+#define min(a,b) (((a) < (b)) ? (a) : (b))
+#endif
#endif /* _PGXP_GTE_H_ */