Skip to content

Commit 431f903

Browse files
committed
* Fixed issue #30: Visual Studio: warning C4996: 'fopen': This function or variable may be unsafe.
1 parent 3ddec93 commit 431f903

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

CHANGES

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ Changes for 2.3.0:
22

33
* New feature: Using RapidAssist version 0.8.1
44
* Fixed issue #28: FileManager class for iterating through all embeded files.
5+
* Fixed issue #30: Visual Studio: warning C4996: 'fopen': This function or variable may be unsafe.
56

67

78
Changes for 2.2.0:

src/bin2cpp/SegmentGenerator.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,9 @@ namespace bin2cpp
8888

8989
//write cpp file heading
9090
fprintf(cpp, "%s", getHeaderTemplate().c_str());
91+
fprintf(cpp, "#if defined(_WIN32) && !defined(_CRT_SECURE_NO_WARNINGS)\n");
92+
fprintf(cpp, "#define _CRT_SECURE_NO_WARNINGS\n");
93+
fprintf(cpp, "#endif\n");
9194
fprintf(cpp, "#include \"%s\"\n", headerFilename.c_str() );
9295
fprintf(cpp, "#include <stdio.h> //for FILE\n");
9396
fprintf(cpp, "#include <string> //for memcpy\n");

0 commit comments

Comments
 (0)