diff options
author | João Valverde <j@v6e.pt> | 2021-11-12 17:23:04 +0000 |
---|---|---|
committer | Wireshark GitLab Utility <gerald+gitlab-utility@wireshark.org> | 2021-11-15 02:41:59 +0000 |
commit | b30a2112e8896a48c7b7bb921ae03485a2d82c36 (patch) | |
tree | 946c9b6a49516b87f719fa524cf1d2be2750c008 /cmakeconfig.h.in | |
parent | e5088eea4aa265aa0bedb3e8cf531dfd07f1c73f (diff) |
regex: Prefer C99/POSIX types
Replace 'gssize' with 'ssize_t'.
Add a CMake configure check for ssize_t.
Fix missing "config.h" includes.
Diffstat (limited to 'cmakeconfig.h.in')
-rw-r--r-- | cmakeconfig.h.in | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/cmakeconfig.h.in b/cmakeconfig.h.in index a9327993b0..d0deb679dc 100644 --- a/cmakeconfig.h.in +++ b/cmakeconfig.h.in @@ -294,10 +294,14 @@ /* Note: not use in the code */ #cmakedefine YYTEXT_POINTER +/* Define to 1 if the 'ssize_t' type exists. */ +#cmakedefine HAVE_SSIZE_T 1 + +#ifndef HAVE_SSIZE_T +# define ssize_t long int +#endif + #if defined(_MSC_VER) -# if !defined(QT_VERSION) || !defined(_SSIZE_T_DEFINED) - typedef int ssize_t; -# endif # define strncasecmp strnicmp # define popen _popen # define pclose _pclose |