Mercurial > dwindows
annotate win/dw.rc @ 2163:98db0e81a514
Rewrite the Compiler detection tests for deprecation and unused.
Simplify and make more safe, clang or compilers supporting __has_extension()
and __has_attribute() should work perfectly. There are now GCC version
tests for all these features, however there seems to be some disagreement
online about which GCC versions introduced these features, so I picked the
versions that I felt had the highest consensus. Can revisit the specific
versions if new information is available:
unused attribute: GCC 3.1 (BSD seems to think 2.7)
deprecated attribute: GCC 3.2 (Hedley seems to think 4.0)
deprecated with message attribute: GCC 4.5
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Wed, 30 Sep 2020 19:34:17 +0000 |
parents | 43c6ecfc598a |
children |
rev | line source |
---|---|
1855
72a75442c51d
Updated MinGW makefile to support picking 32-bit or 64-bit based
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1 #include "winuser.h" |
1865
43c6ecfc598a
It seems WIN64 is defined in 32-bit mode using MinGW... so switch
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
1855
diff
changeset
|
2 #ifdef DW64 |
1855
72a75442c51d
Updated MinGW makefile to support picking 32-bit or 64-bit based
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
3 2 RT_MANIFEST dw.dll.x64.manifest |
72a75442c51d
Updated MinGW makefile to support picking 32-bit or 64-bit based
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
4 #else |
72a75442c51d
Updated MinGW makefile to support picking 32-bit or 64-bit based
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
5 2 RT_MANIFEST dw.dll.x86.manifest |
72a75442c51d
Updated MinGW makefile to support picking 32-bit or 64-bit based
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
6 #endif |