diff options
author | Nirbheek Chauhan <nirbheek@centricular.com> | 2016-08-18 17:46:19 +0530 |
---|---|---|
committer | Tim-Philipp Müller <tim@centricular.com> | 2016-08-19 14:42:52 +0100 |
commit | 7e2b68fe2f22b4f12d876aa9385f594244a631b8 (patch) | |
tree | 655602562c194d3cff8c3ab7465e631c02ce7f5b | |
parent | 950013ff466a5e54d053aac6ea3afb5b428d871c (diff) |
plugins: Use stdint.h instead of _stdint.h
_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.
-rw-r--r-- | ext/dts/gstdtsdec.c | 5 | ||||
-rw-r--r-- | ext/resindvd/resindvdsrc.h | 4 | ||||
-rw-r--r-- | gst/bayer/gstbayer2rgb.c | 6 | ||||
-rw-r--r-- | gst/dccp/gstdccp_common.h | 12 | ||||
-rw-r--r-- | gst/librfb/d3des.c | 7 | ||||
-rw-r--r-- | sys/fbdev/gstfbdevsink.c | 8 |
6 files changed, 36 insertions, 6 deletions
diff --git a/ext/dts/gstdtsdec.c b/ext/dts/gstdtsdec.c index 095238cd8..70ffbc7a0 100644 --- a/ext/dts/gstdtsdec.c +++ b/ext/dts/gstdtsdec.c @@ -38,8 +38,11 @@ #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> diff --git a/ext/resindvd/resindvdsrc.h b/ext/resindvd/resindvdsrc.h index cc2bb049a..b5d8e3603 100644 --- a/ext/resindvd/resindvdsrc.h +++ b/ext/resindvd/resindvdsrc.h @@ -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> diff --git a/gst/bayer/gstbayer2rgb.c b/gst/bayer/gstbayer2rgb.c index e159ca2c2..0b6f23218 100644 --- a/gst/bayer/gstbayer2rgb.c +++ b/gst/bayer/gstbayer2rgb.c @@ -80,7 +80,11 @@ #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 diff --git a/gst/dccp/gstdccp_common.h b/gst/dccp/gstdccp_common.h index 3851e5195..c88f8efd8 100644 --- a/gst/dccp/gstdccp_common.h +++ b/gst/dccp/gstdccp_common.h @@ -38,9 +38,19 @@ #define socklen_t int
#endif
#endif
+ +#ifdef HAVE_SYS_TYPES_H #include <sys/types.h>
-#include <_stdint.h>
+#endif + +#ifdef HAVE_STDINT_H +#include <stdint.h> +#endif + +#ifdef HAVE_UNISTD_H #include <unistd.h>
+#endif + #include <string.h>
#endif /* __GST_DCCP_NET_H__ */
diff --git a/gst/librfb/d3des.c b/gst/librfb/d3des.c index c05fea3f0..377670e33 100644 --- a/gst/librfb/d3des.c +++ b/gst/librfb/d3des.c @@ -26,8 +26,13 @@ * (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" diff --git a/sys/fbdev/gstfbdevsink.c b/sys/fbdev/gstfbdevsink.c index 3f9ad882d..166c543ed 100644 --- a/sys/fbdev/gstfbdevsink.c +++ b/sys/fbdev/gstfbdevsink.c @@ -34,8 +34,14 @@ #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" |