File tree Expand file tree Collapse file tree 2 files changed +3
-11
lines changed Expand file tree Collapse file tree 2 files changed +3
-11
lines changed Original file line number Diff line number Diff line change @@ -7,9 +7,6 @@ include_guard(GLOBAL)
7
7
function (add_windows_resources target rc_file)
8
8
if (WIN32 )
9
9
target_sources (${target} PRIVATE ${rc_file} )
10
- set_property (SOURCE ${rc_file}
11
- APPEND PROPERTY COMPILE_DEFINITIONS WINDRES_PREPROC
12
- )
13
10
endif ()
14
11
endfunction ()
15
12
Original file line number Diff line number Diff line change 17
17
// ! Copyright string used in Windows .rc files
18
18
#define COPYRIGHT_STR " 2009-" STRINGIZE(COPYRIGHT_YEAR) " " COPYRIGHT_HOLDERS_FINAL
19
19
20
- /* *
21
- * bitcoind-res.rc includes this file, but it cannot cope with real c++ code.
22
- * WINDRES_PREPROC is defined to indicate that its pre-processor is running.
23
- * Anything other than a define should be guarded below.
24
- */
25
-
26
- #if !defined(WINDRES_PREPROC)
20
+ // Windows .rc files include this header, but they cannot cope with real C++ code.
21
+ #if !defined(RC_INVOKED)
27
22
28
23
#include < string>
29
24
#include < vector>
@@ -44,6 +39,6 @@ std::string CopyrightHolders(const std::string& strPrefix);
44
39
/* * Returns licensing information (for -version) */
45
40
std::string LicenseInfo ();
46
41
47
- #endif // WINDRES_PREPROC
42
+ #endif // RC_INVOKED
48
43
49
44
#endif // BITCOIN_CLIENTVERSION_H
You can’t perform that action at this time.
0 commit comments