Skip to content

Commit

Permalink
Include <stdint.h> where needed
Browse files Browse the repository at this point in the history
The {u,}int{8,16,32}_t types are defined in <stdint.h>, so it should be
included when such types are used.

Not including <stdint.h> might work by accident with some C libraries
due to it being included by other headers, but it for example causes
build failures with the musl C library.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Upstream-status: mdrjr/c2_aml_libs#1
  • Loading branch information
tpetazzoni authored and C-Prime90 committed Sep 16, 2016
1 parent e7be1f7 commit 7682b64
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions amadec/audio-dec.h
Expand Up @@ -12,6 +12,7 @@
#define AUDIO_DEC_H

#include<pthread.h>
#include <stdint.h>

#include <audio-out.h>
#include <audiodsp.h>
Expand Down
2 changes: 2 additions & 0 deletions amavutils/include/Amvideoutils.h
Expand Up @@ -5,6 +5,8 @@
extern "C" {
#endif

#include <stdint.h>

#define HDMI_HDCP_PASS (1)
#define HDMI_HDCP_FAILED (0)
#define HDMI_NOCONNECT (-1)
Expand Down

0 comments on commit 7682b64

Please sign in to comment.