Skip to content

Commit

Permalink
fix: patch workaround to avoid libstdc++ and clang bug
Browse files Browse the repository at this point in the history
/usr/bin/../lib/gcc/x86_64-redhat-linux/4.8.5/../../../../include/c++/4.8.5/cstdio:120:11: error: no member named 'gets' in the global namespace
  using ::gets;
        ~~^
  • Loading branch information
yumetodo committed May 19, 2019
1 parent 4c31dc9 commit 42c55b7
Show file tree
Hide file tree
Showing 18 changed files with 18 additions and 0 deletions.
1 change: 1 addition & 0 deletions include/DTL/Board/WriteNumber.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
#ifndef INCLUDED_DUNGEON_TEMPLATE_LIBRARY_DTL_BOARD_WRITE_NUMBER_HPP
#define INCLUDED_DUNGEON_TEMPLATE_LIBRARY_DTL_BOARD_WRITE_NUMBER_HPP

#include <DTL/Workaround/cstdioGets.hpp>
#include <sstream>
#include <string>
#include <DTL/Base/Struct.hpp>
Expand Down
1 change: 1 addition & 0 deletions include/DTL/Console/OutputNumber.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
#ifndef INCLUDED_DUNGEON_TEMPLATE_LIBRARY_DTL_CONSOLE_OUTPUT_NUMBER_HPP
#define INCLUDED_DUNGEON_TEMPLATE_LIBRARY_DTL_CONSOLE_OUTPUT_NUMBER_HPP

#include <DTL/Workaround/cstdioGets.hpp>
#include <iostream>
#include <string>
#include <DTL/Base/Struct.hpp>
Expand Down
1 change: 1 addition & 0 deletions include/DTL/Console/OutputString.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
#ifndef INCLUDED_DUNGEON_TEMPLATE_LIBRARY_DTL_CONSOLE_OUTPUT_STRING_HPP
#define INCLUDED_DUNGEON_TEMPLATE_LIBRARY_DTL_CONSOLE_OUTPUT_STRING_HPP

#include <DTL/Workaround/cstdioGets.hpp>
#include <iostream>
#include <string>
#include <vector>
Expand Down
1 change: 1 addition & 0 deletions include/DTL/Console/OutputStringBool.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
#ifndef INCLUDED_DUNGEON_TEMPLATE_LIBRARY_DTL_CONSOLE_OUTPUT_STRING_BOOL_HPP
#define INCLUDED_DUNGEON_TEMPLATE_LIBRARY_DTL_CONSOLE_OUTPUT_STRING_BOOL_HPP

#include <DTL/Workaround/cstdioGets.hpp>
#include <iostream>
#include <string>
#include <DTL/Base/Struct.hpp>
Expand Down
1 change: 1 addition & 0 deletions include/DTL/Console/OutputView.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
#ifndef INCLUDED_DUNGEON_TEMPLATE_LIBRARY_DTL_CONSOLE_OUTPUT_VIEW_HPP
#define INCLUDED_DUNGEON_TEMPLATE_LIBRARY_DTL_CONSOLE_OUTPUT_VIEW_HPP

#include <DTL/Workaround/cstdioGets.hpp>
#include <iostream>
#include <string>
#include <DTL/Base/Struct.hpp>
Expand Down
1 change: 1 addition & 0 deletions include/DTL/Deprecated/DungeonFile.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
#ifndef INCLUDED_DUNGEON_TEMPLATE_LIBRARY_DTL_DUNGEON_FILE_HPP
#define INCLUDED_DUNGEON_TEMPLATE_LIBRARY_DTL_DUNGEON_FILE_HPP

#include <DTL/Workaround/cstdioGets.hpp>
#include <cstdint>
#include <fstream>
#include <string>
Expand Down
1 change: 1 addition & 0 deletions include/DTL/Deprecated/DungeonNoise.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
#ifndef INCLUDED_DUNGEON_TEMPLATE_LIBRARY_DTL_DUNGEON_NOISE_HPP
#define INCLUDED_DUNGEON_TEMPLATE_LIBRARY_DTL_DUNGEON_NOISE_HPP

#include <DTL/Workaround/cstdioGets.hpp>
#include <DTL/Random/MersenneTwister32bit.hpp>
#include <DTL/Macros/nodiscard.hpp>
#include <DTL/Macros/constexpr.hpp>
Expand Down
1 change: 1 addition & 0 deletions include/DTL/Storage/FileBMP.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
https://github.com/Kasugaccho/DungeonTemplateLibrary/wiki/::dtl::storage::FileBMP-(銈广儓銉兗銈搞偗銉┿偣)/
#######################################################################################*/

#include <DTL/Workaround/cstdioGets.hpp>
#include <fstream>
#include <string>
#include <DTL/Base/Struct.hpp>
Expand Down
1 change: 1 addition & 0 deletions include/DTL/Storage/FileHDR.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
https://github.com/Kasugaccho/DungeonTemplateLibrary/wiki/::dtl::storage::FileHDR-(銈广儓銉兗銈搞偗銉┿偣)/
#######################################################################################*/

#include <DTL/Workaround/cstdioGets.hpp>
#include <fstream>
#include <string>
#include <DTL/Base/Struct.hpp>
Expand Down
1 change: 1 addition & 0 deletions include/DTL/Storage/FileJPG.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
https://github.com/Kasugaccho/DungeonTemplateLibrary/wiki/::dtl::storage::FileJPG-(銈广儓銉兗銈搞偗銉┿偣)/
#######################################################################################*/

#include <DTL/Workaround/cstdioGets.hpp>
#include <fstream>
#include <string>
#include <DTL/Base/Struct.hpp>
Expand Down
1 change: 1 addition & 0 deletions include/DTL/Storage/FileMD.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
https://github.com/Kasugaccho/DungeonTemplateLibrary/wiki/::dtl::storage::FileMD-(銈广儓銉兗銈搞偗銉┿偣)/
#######################################################################################*/

#include <DTL/Workaround/cstdioGets.hpp>
#include <fstream>
#include <string>
#include <DTL/Base/Struct.hpp>
Expand Down
1 change: 1 addition & 0 deletions include/DTL/Storage/FilePBM.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
https://github.com/Kasugaccho/DungeonTemplateLibrary/wiki/::dtl::storage::FilePBM-(銈广儓銉兗銈搞偗銉┿偣)/
#######################################################################################*/

#include <DTL/Workaround/cstdioGets.hpp>
#include <fstream>
#include <string>
#include <DTL/Base/Struct.hpp>
Expand Down
1 change: 1 addition & 0 deletions include/DTL/Storage/FilePNG.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
https://github.com/Kasugaccho/DungeonTemplateLibrary/wiki/::dtl::storage::FilePNG-(銈广儓銉兗銈搞偗銉┿偣)/
#######################################################################################*/

#include <DTL/Workaround/cstdioGets.hpp>
#include <fstream>
#include <string>
#include <DTL/Base/Struct.hpp>
Expand Down
1 change: 1 addition & 0 deletions include/DTL/Storage/FileTGA.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
https://github.com/Kasugaccho/DungeonTemplateLibrary/wiki/::dtl::storage::FileTGA-(銈广儓銉兗銈搞偗銉┿偣)/
#######################################################################################*/

#include <DTL/Workaround/cstdioGets.hpp>
#include <fstream>
#include <string>
#include <DTL/Base/Struct.hpp>
Expand Down
1 change: 1 addition & 0 deletions include/DTL/Storage/FileTXT_0_9.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
https://github.com/Kasugaccho/DungeonTemplateLibrary/wiki/::dtl::storage::FileTXT_0_9-(銈广儓銉兗銈搞偗銉┿偣)/
#######################################################################################*/

#include <DTL/Workaround/cstdioGets.hpp>
#include <fstream>
#include <string>
#include <DTL/Base/Struct.hpp>
Expand Down
1 change: 1 addition & 0 deletions include/DTL/Storage/FileTerrainOBJ.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
#ifndef INCLUDED_DUNGEON_TEMPLATE_LIBRARY_DTL_STORAGE_FILE_TERRAIN_OBJ_HPP
#define INCLUDED_DUNGEON_TEMPLATE_LIBRARY_DTL_STORAGE_FILE_TERRAIN_OBJ_HPP

#include <DTL/Workaround/cstdioGets.hpp>
#include <fstream>
#include <string>
#include <DTL/Base/Struct.hpp>
Expand Down
1 change: 1 addition & 0 deletions include/DTL/ThirdParty/STB/stb_image_write.h
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ LICENSE
#ifndef INCLUDE_STB_IMAGE_WRITE_H
#define INCLUDE_STB_IMAGE_WRITE_H

#include <DTL/Workaround/cstdioGets.hpp>
#include <cstdlib>
#include <DTL/Type/SizeT.hpp>

Expand Down
1 change: 1 addition & 0 deletions include/DTL/Workaround/cstdioGets.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
char *gets(char *s);

0 comments on commit 42c55b7

Please sign in to comment.