Skip to content
This repository has been archived by the owner on May 13, 2024. It is now read-only.

Commit

Permalink
Remove unused includes in public headers
Browse files Browse the repository at this point in the history
  • Loading branch information
sfan5 committed Feb 25, 2024
1 parent 2bbfa17 commit 7ddf740
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
2 changes: 0 additions & 2 deletions include/IrrCompileConfig.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@
#define IRRLICHT_VERSION_SVN alpha
#define IRRLICHT_SDK_VERSION "1.9.0" IRRLICHT_VERSION_MT

#include <stdio.h> // TODO: Although included elsewhere this is required at least for mingw

#ifdef _WIN32
#define IRRCALLCONV __stdcall
#else
Expand Down
8 changes: 2 additions & 6 deletions include/irrTypes.h
Original file line number Diff line number Diff line change
Expand Up @@ -56,23 +56,19 @@ typedef double f64;
} // end namespace irr


#include <wchar.h>
//! Defines for s{w,n}printf_irr because s{w,n}printf methods do not match the ISO C
//! Defines for snprintf_irr because snprintf method does not match the ISO C
//! standard on Windows platforms.
//! We want int snprintf_irr(char *str, size_t size, const char *format, ...);
//! and int swprintf_irr(wchar_t *wcs, size_t maxlen, const wchar_t *format, ...);
#if defined(_MSC_VER)
#define swprintf_irr swprintf_s
#define snprintf_irr sprintf_s
#else
#define swprintf_irr swprintf
#define snprintf_irr snprintf
#endif // _MSC_VER

namespace irr
{

//! Type name for character type used by the file system.
//! Type name for character type used by the file system (legacy).
typedef char fschar_t;
#define _IRR_TEXT(X) X

Expand Down

0 comments on commit 7ddf740

Please sign in to comment.