Skip to content

Commit fa41c86

Browse files
committed
Remove vcruntime140.dll dependency
* Also remove unneeded fflush on pout()
1 parent 73046db commit fa41c86

2 files changed

Lines changed: 7 additions & 4 deletions

File tree

.vs/winpatch.vcxproj

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,7 @@
147147
<PreprocessorDefinitions>WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
148148
<ExceptionHandling>false</ExceptionHandling>
149149
<CompileAs>CompileAsC</CompileAs>
150+
<RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary>
150151
</ClCompile>
151152
<Link>
152153
<SubSystem>Console</SubSystem>
@@ -160,6 +161,7 @@
160161
<PreprocessorDefinitions>_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
161162
<ExceptionHandling>false</ExceptionHandling>
162163
<CompileAs>CompileAsC</CompileAs>
164+
<RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary>
163165
</ClCompile>
164166
<Link>
165167
<SubSystem>Console</SubSystem>
@@ -173,6 +175,7 @@
173175
<PreprocessorDefinitions>_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
174176
<ExceptionHandling>false</ExceptionHandling>
175177
<CompileAs>CompileAsC</CompileAs>
178+
<RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary>
176179
</ClCompile>
177180
<Link>
178181
<SubSystem>Console</SubSystem>
@@ -183,10 +186,10 @@
183186
<PrecompiledHeader>
184187
</PrecompiledHeader>
185188
<WarningLevel>Level3</WarningLevel>
186-
<FunctionLevelLinking>true</FunctionLevelLinking>
187189
<PreprocessorDefinitions>WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
188190
<ExceptionHandling>false</ExceptionHandling>
189191
<CompileAs>CompileAsC</CompileAs>
192+
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
190193
</ClCompile>
191194
<Link>
192195
<SubSystem>Console</SubSystem>
@@ -199,10 +202,10 @@
199202
<PrecompiledHeader>
200203
</PrecompiledHeader>
201204
<WarningLevel>Level3</WarningLevel>
202-
<FunctionLevelLinking>true</FunctionLevelLinking>
203205
<PreprocessorDefinitions>NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
204206
<ExceptionHandling>false</ExceptionHandling>
205207
<CompileAs>CompileAsC</CompileAs>
208+
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
206209
</ClCompile>
207210
<Link>
208211
<SubSystem>Console</SubSystem>
@@ -215,10 +218,10 @@
215218
<PrecompiledHeader>
216219
</PrecompiledHeader>
217220
<WarningLevel>Level3</WarningLevel>
218-
<FunctionLevelLinking>true</FunctionLevelLinking>
219221
<PreprocessorDefinitions>NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
220222
<ExceptionHandling>false</ExceptionHandling>
221223
<CompileAs>CompileAsC</CompileAs>
224+
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
222225
</ClCompile>
223226
<Link>
224227
<SubSystem>Console</SubSystem>

src/winpatch.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858
#define APP_VERSION_STR STRINGIFY(APP_VERSION)
5959
#endif
6060

61-
#define pout(fmt, ...) do {fprintf(stdout, fmt, __VA_ARGS__); fflush(stdout);} while(0)
61+
#define pout(fmt, ...) do {fprintf(stdout, fmt, __VA_ARGS__);} while(0)
6262
#define spout(fmt, ...) do {if (!silent) pout(fmt, __VA_ARGS__);} while(0)
6363
#define vpout(fmt, ...) do {if (verbose) pout(fmt, __VA_ARGS__);} while(0)
6464
#define perr(fmt, ...) fprintf(stderr, fmt, __VA_ARGS__)

0 commit comments

Comments
 (0)