Add shared min and max functions for int

(cherry picked from commit 3ee5031fd7)
This commit is contained in:
Camilla Löwy
2022-03-14 16:01:34 +01:00
parent b43c122dd1
commit 3006c02bc2
5 changed files with 18 additions and 18 deletions
+10
View File
@@ -150,6 +150,16 @@ char* _glfw_strdup(const char* source)
return result;
}
int _glfw_min(int a, int b)
{
return a < b ? a : b;
}
int _glfw_max(int a, int b)
{
return a > b ? a : b;
}
float _glfw_fminf(float a, float b)
{
if (a != a)