diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2015-02-18 01:39:57 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2015-02-18 01:49:35 +0100 |
commit | 0babb896b4352e48bd2157f7ef08b341f55f2d91 (patch) | |
tree | 7c7c519a7a19c45fa3b9d5edfbec8f0faf717225 /compat/avisynth | |
parent | b7c19aee6c86f6924f83a8e2a7b087b8ea6c00fa (diff) | |
download | ffmpeg-streaming-0babb896b4352e48bd2157f7ef08b341f55f2d91.zip ffmpeg-streaming-0babb896b4352e48bd2157f7ef08b341f55f2d91.tar.gz |
compat/avisynth/windowsPorts/windows2linux: Add () to protect macro arguments
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'compat/avisynth')
-rw-r--r-- | compat/avisynth/windowsPorts/windows2linux.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compat/avisynth/windowsPorts/windows2linux.h b/compat/avisynth/windowsPorts/windows2linux.h index 5476afe..7cf4600 100644 --- a/compat/avisynth/windowsPorts/windows2linux.h +++ b/compat/avisynth/windowsPorts/windows2linux.h @@ -52,8 +52,8 @@ namespace avxsynth { // // Functions // -#define MAKEDWORD(a,b,c,d) ((a << 24) | (b << 16) | (c << 8) | (d)) -#define MAKEWORD(a,b) ((a << 8) | (b)) +#define MAKEDWORD(a,b,c,d) (((a) << 24) | ((b) << 16) | ((c) << 8) | (d)) +#define MAKEWORD(a,b) (((a) << 8) | (b)) #define lstrlen strlen #define lstrcpy strcpy |