Skip to content

Commit

Permalink
Fixed|Unix: Added missing <cstring> header (platform-wide)
Browse files Browse the repository at this point in the history
This allows using std::strcat, std::memcpy, etc.
  • Loading branch information
skyjake committed Mar 1, 2013
1 parent 0327319 commit 501969d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
4 changes: 4 additions & 0 deletions doomsday/client/include/de_platform.h
Expand Up @@ -79,6 +79,10 @@ const char* strcasestr(const char* text, const char* sub);
#include <strings.h>
#include <errno.h>

#ifdef __cplusplus
# include <cstring>
#endif

#ifdef __GNUC__
# define GCC_VERSION (__GNUC__*10000 + __GNUC_MINOR__*100 + __GNUC_PATCHLEVEL__)
#endif
Expand Down
1 change: 0 additions & 1 deletion doomsday/client/src/render/rend_font.cpp
Expand Up @@ -22,7 +22,6 @@
*/

#include <assert.h>
#include <string.h>
#include <ctype.h>
#include <stdio.h>
#include <stdlib.h>
Expand Down
2 changes: 0 additions & 2 deletions doomsday/client/src/resource/bitmapfont.cpp
Expand Up @@ -17,8 +17,6 @@
* http://www.gnu.org/licenses</small>
*/

#include <string.h>

#include "de_base.h"
#include "de_console.h"
#include "de_graphics.h"
Expand Down

0 comments on commit 501969d

Please sign in to comment.