aboutsummaryrefslogtreecommitdiffstats
path: root/libng/writefile.c
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2010-04-01 11:24:41 +0200
committerGerd Hoffmann <kraxel@redhat.com>2010-04-01 11:24:41 +0200
commit45a153b46c280b51471ec12854cce623ef8f92be (patch)
treef4387c5c580e750919d0e5106327df0d0c54a645 /libng/writefile.c
parentc75c37f7104480a0d386a9e0caa8a72335395503 (diff)
v3.95
Diffstat (limited to 'libng/writefile.c')
-rw-r--r--libng/writefile.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/libng/writefile.c b/libng/writefile.c
index 92516e9..92f6404 100644
--- a/libng/writefile.c
+++ b/libng/writefile.c
@@ -18,6 +18,7 @@
#include <fcntl.h>
#include <jpeglib.h>
#include <pthread.h>
+#include <inttypes.h>
#include <sys/types.h>
#include <sys/param.h>
#include "byteswap.h"
@@ -178,10 +179,10 @@ int write_pgm(char *filename, struct ng_video_buf *buf)
/* Copyright (C) by Heiko Eissfeldt */
-typedef unsigned char BYTE;
-typedef unsigned short WORD;
-typedef unsigned long DWORD;
-typedef unsigned long FOURCC; /* a four character code */
+typedef uint8_t BYTE;
+typedef uint16_t WORD;
+typedef uint32_t DWORD;
+typedef uint32_t FOURCC; /* a four character code */
/* flags for 'wFormatTag' field of WAVEFORMAT */
#define WAVE_FORMAT_PCM 1

Privacy Policy