Skip to content

Commit 4e41ce2

Browse files
committed
removed checks for stdint.h and stdbool.h which should really be standard by now
1 parent f3df4ac commit 4e41ce2

File tree

8 files changed

+3
-285
lines changed

8 files changed

+3
-285
lines changed

CMakeLists.txt

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -29,16 +29,11 @@ endif()
2929
find_package(Threads REQUIRED)
3030

3131
CHECK_INCLUDE_FILE(malloc.h HAVE_MALLOC_H)
32-
CHECK_INCLUDE_FILE(stdint.h HAVE_STDINT_H)
33-
CHECK_INCLUDE_FILE(stdbool.h HAVE_STDBOOL_H)
3432
CHECK_FUNCTION_EXISTS(posix_memalign HAVE_POSIX_MEMALIGN)
3533

3634
if (HAVE_MALLOC_H)
3735
add_definitions(-DHAVE_MALLOC_H)
3836
endif()
39-
if (HAVE_STDINT_H)
40-
add_definitions(-DHAVE_STDINT_H)
41-
endif()
4237
if (HAVE_POSIX_MEMALIGN)
4338
add_definitions(-DHAVE_POSIX_MEMALIGN)
4439
endif()
@@ -61,8 +56,6 @@ include_directories ("${PROJECT_BINARY_DIR}")
6156
include_directories ("${PROJECT_SOURCE_DIR}/libde265")
6257
if(MSVC)
6358
include_directories ("${PROJECT_SOURCE_DIR}/extra")
64-
add_definitions(-DHAVE_STDINT_H)
65-
add_definitions(-DHAVE_STDBOOL_H)
6659
endif()
6760

6861
option(ENABLE_DECODER "Enable Decoder" ON)

configure.ac

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ HAVE_VISIBILITY=0
6262
AM_CONDITIONAL([HAVE_VISIBILITY], [test "x$HAVE_VISIBILITY" != "x0"])
6363

6464
# Checks for header files.
65-
AC_CHECK_HEADERS([stdint.h stdlib.h string.h malloc.h signal.h setjmp.h stddef.h sys/time.h])
65+
AC_CHECK_HEADERS([stdlib.h string.h malloc.h signal.h setjmp.h stddef.h sys/time.h])
6666

6767
AC_LANG_PUSH(C++)
6868
OLD_CPPFLAGS="$CPPFLAGS"

extra/stdbool.h

Lines changed: 0 additions & 64 deletions
This file was deleted.

extra/stdint.h

Lines changed: 0 additions & 203 deletions
This file was deleted.

libde265/Makefile.am

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -114,9 +114,7 @@ if MINGW
114114
endif
115115

116116
EXTRA_DIST = Makefile.vc7 \
117-
CMakeLists.txt \
118-
../extra/stdbool.h \
119-
../extra/stdint.h
117+
CMakeLists.txt
120118

121119
libde265_la_HEADERS = \
122120
de265.h \

libde265/alloc_pool.h

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,7 @@
2929

3030
#include <vector>
3131
#include <cstddef>
32-
#ifdef HAVE_STDINT_H
33-
#include <stdint.h>
34-
#endif
35-
#ifdef HAVE_CSTDINT
3632
#include <cstdint>
37-
#endif
3833

3934

4035
class alloc_pool

scripts/check_licenses.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ CHECK_RESULT=`/usr/bin/licensecheck --recursive --ignore 'nacl_sdk' .`
2525

2626
# Files that are public domain or have other known-good license headers which licensecheck doesn't detect.
2727
KNOWN_GOOD_FILES=(
28-
'./extra/stdint.h',
2928
'./extra/win32cond.c',
3029
'./extra/win32cond.h',
3130
'./libde265/md5.cc',

tools/rd-curves.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
#include <sys/stat.h>
2929
#include <unistd.h>
3030
#include <assert.h>
31-
#include <stdint.h>
31+
#include <cstdint>
3232
#include <string.h>
3333
#include <getopt.h>
3434

0 commit comments

Comments
 (0)