summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xconfigure21
-rw-r--r--divx4_vbr.c8
-rw-r--r--vidix/drivers/radeon_vid.c2
3 files changed, 11 insertions, 20 deletions
diff --git a/configure b/configure
index bb2c3e357b..872fa85f7a 100755
--- a/configure
+++ b/configure
@@ -1113,20 +1113,20 @@ else
_streaming=no
fi
-
-echocheck "stdint.h"
+echocheck "inttypes.h (required)"
cat > $TMPC << EOF
-#include <stdint.h>
+#include <inttypes.h>
int main(void) { return 0; }
EOF
-_stdint=no
-cc_check && _stdint=yes
-if test "$_stdint" = yes ; then
- _def_stdint='#define HAVE_STDINT_H 1'
+_inttypes=no
+cc_check && _inttypes=yes
+if test "$_inttypes" = yes ; then
+ # nothing to do
+ :
else
- _def_stdint='#undef HAVE_STDINT_H'
+ die "cannot find header inttypes.h (see in DOC/faq.html)"
fi
-echores "$_stdint"
+echores "$_inttypes"
echocheck "malloc.h"
@@ -2895,9 +2895,6 @@ $_def_rtc
/* Define this if your system has the header file for the OSS sound interface */
$_def_sys_soundcard
-/* Define this if your system has the "stdint.h" header file */
-$_def_stdint
-
/* Define this if your system has the "malloc.h" header file */
$_def_malloc
diff --git a/divx4_vbr.c b/divx4_vbr.c
index 8b7d8debbf..dc033a006d 100644
--- a/divx4_vbr.c
+++ b/divx4_vbr.c
@@ -42,13 +42,7 @@
#include <fcntl.h>
#include <dlfcn.h>
#include <math.h>
-
-#include "config.h"
-
-#ifdef HAVE_STDINT_H
-#include <stdint.h>
-#endif
-
+#include <inttypes.h>
#include "divx4_vbr.h"
diff --git a/vidix/drivers/radeon_vid.c b/vidix/drivers/radeon_vid.c
index 96e81a654e..4bdd4a8207 100644
--- a/vidix/drivers/radeon_vid.c
+++ b/vidix/drivers/radeon_vid.c
@@ -8,7 +8,7 @@
#include <stdlib.h>
#include <string.h>
#include <math.h>
-#include <stdint.h>
+#include <inttypes.h>
#include "../vidix.h"
#include "../fourcc.h"
#include "../../libdha/libdha.h"