Skip to content

Commit 3b1568a

Browse files
committed
Fixes pragma issues with GNU compilers which don't allow the use of #pragma comment
1 parent a9b4489 commit 3b1568a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/SFML.hpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
#include <SFML/System.hpp>
99
#include <SFML/Window.hpp>
1010

11+
#ifndef __GNUC__
1112
#if defined(_DEBUG) || defined(DEBUG)
1213
#if defined(SFML_STATIC)
1314
#pragma comment(lib,"sfml-graphics-s-d.lib")
@@ -41,5 +42,6 @@
4142
#pragma comment(lib,"sfml-main.lib")
4243
#endif
4344
#endif
45+
#endif //__GNUC__
4446

4547
#endif // SFMLFULL_INCLUDED

0 commit comments

Comments
 (0)