Skip to content

Commit e04ee95

Browse files
committed
Fixed issue #4: Remove absolute path from include statement in cpp generated code
1 parent c58d054 commit e04ee95

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/bin2cpp.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -414,7 +414,7 @@ namespace bin2cpp
414414
fprintf(cpp, " * Copyright (C) 2013-%d end2endzone.com. All rights reserved.\n", ::getCopyrightYear());
415415
fprintf(cpp, " * Do not modify this file.\n");
416416
fprintf(cpp, " */\n");
417-
fprintf(cpp, "#include \"%s\"\n", headerPath.c_str() );
417+
fprintf(cpp, "#include \"%s\"\n", iHeaderFilename );
418418
fprintf(cpp, "#include <stdio.h> //for FILE\n");
419419
fprintf(cpp, "#include <string> //for memcpy\n");
420420
fprintf(cpp, "namespace bin2cpp\n");

0 commit comments

Comments
 (0)