Skip to content

Commit 0cc0018

Browse files
committed
Remove unused C #includes in headers
Don't include standard C headers that aren't even used for anything by the wx headers.
1 parent 318e97e commit 0cc0018

File tree

5 files changed

+0
-11
lines changed

5 files changed

+0
-11
lines changed

include/wx/datetime.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,6 @@
1919

2020
#include <vector>
2121

22-
#include <limits.h> // for INT_MIN
23-
2422
#include "wx/longlong.h"
2523
#include "wx/anystr.h"
2624

include/wx/strconv.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,6 @@
1515
#include "wx/chartype.h"
1616
#include "wx/buffer.h"
1717

18-
#include <stdlib.h>
19-
2018
class WXDLLIMPEXP_FWD_BASE wxString;
2119

2220
// the error value returned by wxMBConv methods

include/wx/stream.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414

1515
#if wxUSE_STREAMS
1616

17-
#include <stdio.h>
1817
#include "wx/object.h"
1918
#include "wx/string.h"
2019
#include "wx/filefn.h" // for wxFileOffset, wxInvalidOffset and wxSeekMode

include/wx/string.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,7 @@
2626
#include <ctype.h>
2727
#endif
2828

29-
#include <string.h>
30-
#include <stdio.h>
3129
#include <stdarg.h>
32-
#include <limits.h>
33-
#include <stdlib.h>
3430

3531
#include "wx/chartype.h" // for wxChar
3632
#include "wx/wxcrtbase.h" // for wxChar, wxStrlen() etc.

include/wx/utils.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,6 @@ class WXDLLIMPEXP_FWD_BASE wxArrayInt;
4848
#include <unistd.h>
4949
#endif
5050

51-
#include <stdio.h>
52-
5351
#include <unordered_map>
5452

5553
// ----------------------------------------------------------------------------

0 commit comments

Comments
 (0)