Skip to content

Commit 540a3ca

Browse files
committed
Correctly explain #undef min
1 parent af7fd46 commit 540a3ca

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

driver/mysql_ps_resultset.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
4747

4848
#include "mysql_debug.h"
4949

50-
//Prevent windows min() macro
50+
//Prevent windows min() macro because of std::numeric_limits<int>::min()
5151
#undef min
5252

5353
namespace sql

driver/mysql_resultset.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
4444

4545
#include "mysql_debug.h"
4646

47-
//Prevent windows min() macro
47+
//Prevent windows min() macro because of std::numeric_limits<int>::min()
4848
#undef min
4949

5050
namespace sql

test/unit/bugs/bugs.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
2828
#include <limits>
2929
#include "driver/mysql_error.h"
3030

31-
//Prevent windows min() macro
31+
//Prevent windows min() macro because of std::numeric_limits<int>::min()
3232
#undef min
3333

3434
namespace testsuite

0 commit comments

Comments
 (0)