Changeset 1088f1d


Ignore:
Timestamp:
01/28/15 22:59:07 (19 months ago)
Author:
Rodeo <tdskywalker@…>
Branches:
master
Children:
399c648
Parents:
d8eecdc
Message:

Build: fix compilation with some MinGW-w64 distributions.

Some distributions provide their own strtok_r via a preprocessor directive, which conflicts with our implementation; prefer our own as it is thread-safe.

git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6825 b64f7644-9d1e-0410-96f1-a4d463321fa5

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libhb/ports.h

    r993d19b r1088f1d  
    5050void     hb_snooze( int delay );
    5151int      hb_platform_init();
     52
    5253#ifdef SYS_MINGW
     54/*
     55 * Some MinGW distributions #define strtok_r in pthread.h,
     56 * but their so-called "implementation" isn't thread-safe.
     57 */
     58#ifdef strtok_r
     59#undef strtok_r
     60#endif
    5361char *strtok_r(char *s, const char *delim, char **save_ptr);
    5462#endif
Note: See TracChangeset for help on using the changeset viewer.