Skip to content

Commit 4a581d4

Browse files
committed
Fix compilation with older msvc versions.
1 parent 46742f1 commit 4a581d4

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

include/projectGenerator.h

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,13 @@ class ProjectGenerator
3737
bool isShared = false;
3838
bool is32 = false;
3939
bool is64 = false;
40+
41+
ConfigConds(bool istatic, bool ishared, bool i32, bool i64)
42+
: isStatic(istatic)
43+
, isShared(ishared)
44+
, is32(i32)
45+
, is64(i64)
46+
{}
4047
};
4148
using ConditionalList = map<string, ConfigConds>;
4249
ifstream m_inputFile;

source/projectGenerator_files.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ bool ProjectGenerator::createReplaceFiles(
208208
}
209209
// Check for config requirement that can be handled by VS (i.e. static/shared|32/64bit)
210210
if ((isShared || isStatic || is32 || is64) && !hasOther) {
211-
conditionalIncludes.emplace(replaceInclude, ConfigConds{isStatic, isShared, is32, is64});
211+
conditionalIncludes.emplace(replaceInclude, ConfigConds(isStatic, isShared, is32, is64));
212212
continue;
213213
}
214214
// Create new file to wrap input object

0 commit comments

Comments
 (0)