plugins: Use stdint.h instead of _stdint.h
authorNirbheek Chauhan <nirbheek@centricular.com>
Thu, 18 Aug 2016 12:16:19 +0000 (17:46 +0530)
committerTim-Philipp Müller <tim@centricular.com>
Fri, 19 Aug 2016 13:42:52 +0000 (14:42 +0100)
_stdint.h is generated by Autotools and we don't really need it. All
supported platforms now ship with stdint.h. The only stickler was MSVC,
and since Visual Studio 2015 it also ships stdint.h now.

ext/dts/gstdtsdec.c
ext/resindvd/resindvdsrc.h
gst/bayer/gstbayer2rgb.c
gst/dccp/gstdccp_common.h
gst/librfb/d3des.c
sys/fbdev/gstfbdevsink.c

index 095238c..70ffbc7 100644 (file)
 #include "config.h"
 #endif
 
+#ifdef HAVE_STDINT_H
+#include <stdint.h>
+#endif
+
 #include <string.h>
-#include "_stdint.h"
 #include <stdlib.h>
 
 #include <gst/gst.h>
index cc2bb04..b5d8e36 100644 (file)
@@ -23,7 +23,9 @@
 
 #include <gst/base/gstbasesrc.h>
 
-#include "_stdint.h"
+#ifdef HAVE_STDINT_H
+#include <stdint.h>
+#endif
 
 #include <dvdnav/dvdnav.h>
 #include <dvdread/ifo_read.h>
index e159ca2..0b6f232 100644 (file)
 #include <gst/video/video.h>
 #include <string.h>
 #include <stdlib.h>
-#include <_stdint.h>
+
+#ifdef HAVE_STDINT_H
+#include <stdint.h>
+#endif
+
 #include "gstbayerorc.h"
 
 #define GST_CAT_DEFAULT gst_bayer2rgb_debug
index 3851e51..c88f8ef 100644 (file)
 #define socklen_t int\r
 #endif\r
 #endif\r
+
+#ifdef HAVE_SYS_TYPES_H
 #include <sys/types.h>\r
-#include <_stdint.h>\r
+#endif
+
+#ifdef HAVE_STDINT_H
+#include <stdint.h>
+#endif
+
+#ifdef HAVE_UNISTD_H
 #include <unistd.h>\r
+#endif
+
 #include <string.h>\r
 \r
 #endif /* __GST_DCCP_NET_H__ */\r
index c05fea3..377670e 100644 (file)
  * (GEnie : OUTER; CIS : [71755,204]) Graven Imagery, 1992.
  */
 
+#ifdef HAVE_CONFIG_H
 #include "config.h"
-#include "_stdint.h"
+#endif
+
+#ifdef HAVE_STDINT_H
+#include <stdint.h>
+#endif
 
 #include "d3des.h"
 
index 3f9ad88..166c543 100644 (file)
 #include <fcntl.h>
 #include <sys/ioctl.h>
 #include <sys/mman.h>
+
+#ifdef HAVE_UNISTD_H
 #include <unistd.h>
-#include "_stdint.h"
+#endif
+
+#ifdef HAVE_STDINT_H
+#include <stdint.h>
+#endif
 
 #include "gstfbdevsink.h"