Skip to content

Commit ab71b1b

Browse files
committed
make it work for both windows and linux
1 parent 27af789 commit ab71b1b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Tutorial-05/object-loading/glm.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,10 @@
1212
*/
1313

1414
// Disable VS warnings
15+
16+
#ifdef _WIN32
1517
#define strdup _strdup
18+
#endif
1619
#define _CRT_SECURE_NO_WARNINGS
1720

1821

0 commit comments

Comments
 (0)