mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2024-11-26 13:31:00 +00:00
closedcaption: Fix build with MSVC
Undefined ssize_t is used in eia608.h file as well
This commit is contained in:
parent
195f22c2e3
commit
3dda2aebe9
2 changed files with 6 additions and 9 deletions
|
@ -31,15 +31,6 @@ extern "C" {
|
||||||
#include "utf8.h"
|
#include "utf8.h"
|
||||||
#include "xds.h"
|
#include "xds.h"
|
||||||
|
|
||||||
// ssize_t is POSIX and does not exist on Windows
|
|
||||||
#if defined(_MSC_VER)
|
|
||||||
#if defined(_WIN64)
|
|
||||||
typedef signed long ssize_t;
|
|
||||||
#else
|
|
||||||
typedef signed int ssize_t;
|
|
||||||
#endif
|
|
||||||
#endif
|
|
||||||
|
|
||||||
typedef enum {
|
typedef enum {
|
||||||
LIBCAPTION_ERROR = 0,
|
LIBCAPTION_ERROR = 0,
|
||||||
LIBCAPTION_OK = 1,
|
LIBCAPTION_OK = 1,
|
||||||
|
|
|
@ -44,6 +44,12 @@ extern const char* eia608_style_map[];
|
||||||
#ifndef inline
|
#ifndef inline
|
||||||
#define inline __inline
|
#define inline __inline
|
||||||
#endif
|
#endif
|
||||||
|
// ssize_t is POSIX and does not exist on Windows
|
||||||
|
#if defined(_WIN64)
|
||||||
|
typedef signed long ssize_t;
|
||||||
|
#else
|
||||||
|
typedef signed int ssize_t;
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/*! \brief
|
/*! \brief
|
||||||
|
|
Loading…
Reference in a new issue