summaryrefslogtreecommitdiff
path: root/libpcsxcore/pgxp_gte.h
diff options
context:
space:
mode:
authorStelios Tsampas <loathingkernel@gmail.com>2017-07-10 16:14:43 +0300
committerStelios Tsampas <loathingkernel@gmail.com>2017-07-16 21:20:53 +0300
commitd880179b2a3aacae96bb4771a3c9e227ca6d5818 (patch)
tree96730dce1e5afeef992abc6ae6884577c8ebf53c /libpcsxcore/pgxp_gte.h
parent496df34ee4e3861c6e9b0ee8256d575622447563 (diff)
downloadpcsxr-d880179b2a3aacae96bb4771a3c9e227ca6d5818.tar.gz
Fix compilation on linux.
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..de607c99 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_ */