WinGui: Fix another instance of the Caliburn vs Json.net sillyness where objects...
[HandBrake.git] / libhb / compat.h
blob40283c9074994b68298f874b356e73e8a7a8defb
1 /* compat.h
3 Copyright (c) 2003-2015 HandBrake Team
4 This file is part of the HandBrake source code
5 Homepage: <http://handbrake.fr/>.
6 It may be used under the terms of the GNU General Public License v2.
7 For full terms see the file COPYING file or visit http://www.gnu.org/licenses/gpl-2.0.html
8 */
10 #ifndef HB_COMPAT_H
11 #define HB_COMPAT_H
13 #ifdef HB_NEED_STRTOK_R
15 * Some MinGW-w64 distributions #define strtok_r in pthread.h,
16 * however their so-called "implementation" isn't thread-safe.
18 #ifdef USE_PTHREAD
19 #include <pthread.h>
20 #ifdef strtok_r
21 #undef strtok_r
22 #endif // strtok_r
23 #endif // USE_PTHREAD
25 char *strtok_r(char *s, const char *delim, char **save_ptr);
26 #endif // HB_NEED_STRTOK_R
28 #endif // HB_COMPAT_H