Skip to content

Commit 89d6bcc

Browse files
tt4gjtv
authored andcommitted
Check compiler is gcc before pragma GCC (#157)
1 parent 9532128 commit 89d6bcc

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,6 @@
11
/// End a code block started by "ignore-deprecated-pre.hxx".
2+
#if defined(__GNUC__)
3+
24
#pragma GCC diagnostic pop
5+
6+
#endif // __GNUC__

include/pqxx/internal/ignore-deprecated-pre.hxx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,9 @@
1111
* "ignore-deprecated-post.hxx". To avoid mistakes, keep the enclosed area as
1212
* small as possible.
1313
*/
14+
#if defined(__GNUC__)
15+
1416
#pragma GCC diagnostic push
1517
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
18+
19+
#endif // __GNUC__

0 commit comments

Comments
 (0)