diff options
author | Nirbheek Chauhan <nirbheek@centricular.com> | 2016-10-26 20:39:22 +0530 |
---|---|---|
committer | Nirbheek Chauhan <nirbheek@centricular.com> | 2018-09-07 20:42:19 +0530 |
commit | b0827e3fcac9105614ad853e3d9132e965fe7506 (patch) | |
tree | 1b196614b0017d042338afe07abeec4a39d025e1 /recipes/sbc | |
parent | 226844bb03629f400445de4031966fcff3214d3c (diff) |
sbc.recipe: Define ssize_t on MSVC as SSIZE_T
ssize_t is not available on MSVC, but SSIZE_T is and is the same thing.
Diffstat (limited to 'recipes/sbc')
-rw-r--r-- | recipes/sbc/0003-sbc.h-Define-ssize_t-when-building-with-MSVC.patch | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/recipes/sbc/0003-sbc.h-Define-ssize_t-when-building-with-MSVC.patch b/recipes/sbc/0003-sbc.h-Define-ssize_t-when-building-with-MSVC.patch new file mode 100644 index 00000000..eb00fe89 --- /dev/null +++ b/recipes/sbc/0003-sbc.h-Define-ssize_t-when-building-with-MSVC.patch @@ -0,0 +1,29 @@ +From 852570a535b5f3cbcb36eb71f9c6a6862b9d9426 Mon Sep 17 00:00:00 2001 +From: Nirbheek Chauhan <nirbheek@centricular.com> +Date: Tue, 25 Oct 2016 23:09:22 +0530 +Subject: [PATCH] sbc.h: Define ssize_t when building with MSVC + +--- + sbc/sbc.h | 6 ++++++ + 1 file changed, 6 insertions(+) + +diff --git a/sbc/sbc.h b/sbc/sbc.h +index d6f123e..1d1343d 100644 +--- a/sbc/sbc.h ++++ b/sbc/sbc.h +@@ -35,6 +35,12 @@ extern "C" { + #include <stdint.h> + #include <sys/types.h> + ++/* On MSVC, ssize_t is SSIZE_T */ ++#ifdef _MSC_VER ++#include <BaseTsd.h> ++#define ssize_t SSIZE_T ++#endif ++ + /* sampling frequency */ + #define SBC_FREQ_16000 0x00 + #define SBC_FREQ_32000 0x01 +-- +2.9.0.windows.1 + |