vlc/compat
Steve Lhomme 416ba0eca6 compat: provide a win32 specific version of timespec_get
On mingw64 clock_gettime() is defined in winpthread which we don't want to use.

This implementation is based on the winpthread internal processing.

(cherry picked from commit f0a7bc050f)
Signed-off-by: Steve Lhomme <robux4@ycbcr.xyz>
2020-06-19 08:11:45 +02:00
..
test compat: test: Fix strnstr tests 2015-12-09 20:38:37 +01:00
.gitignore Make sure libcompat is never empty 2010-08-01 13:00:56 +03:00
Makefile.am Link libcompat with a library with math functions 2018-03-13 23:04:00 +02:00
aligned_alloc.c core: add aligned_free to match the aligned_alloc used in the code 2017-06-22 09:15:07 +02:00
asprintf.c LGPL 2011-11-27 22:54:33 +01:00
atof.c LGPL 2011-11-27 22:54:33 +01:00
atoll.c LGPL 2011-11-27 22:54:33 +01:00
dirfd.c Remove dirfd() hacks 2012-01-03 18:35:02 +02:00
fdopendir.c Remove inconsistently used HAVE_UNISTD_H 2013-12-29 16:15:46 +02:00
ffsll.c compat: ffsll use long long int as argument 2016-12-22 16:18:03 +01:00
flockfile.c newlib/nacl: Provide flockfile implementation 2017-03-23 18:53:25 +02:00
freeaddrinfo.c Remove old mail address from sources 2019-09-04 22:12:12 +03:00
fsync.c Use _WIN32 rather than WIN32 (same for WIN64) 2013-06-05 16:06:10 +02:00
gai_strerror.c Remove old mail address from sources 2019-09-04 22:12:12 +03:00
getdelim.c LGPL 2011-11-27 22:54:33 +01:00
getpid.c Use _WIN32 rather than WIN32 (same for WIN64) 2013-06-05 16:06:10 +02:00
gettimeofday.c compat: gettimeofday: unused variable 2016-06-10 14:15:28 +02:00
gmtime_r.c gmtime_r: rewrite, now truly thread-safe 2012-04-16 23:26:25 +03:00
inet_pton.c compat: fix inet_pton declaration 2016-07-06 14:13:37 +02:00
lfind.c compat: add lfind 2018-10-23 17:23:06 +02:00
lldiv.c LGPL 2011-11-27 22:54:33 +01:00
localtime_r.c localtime_r: fix Annex K usage 2015-06-26 18:00:24 +03:00
memrchr.c memrchr: fix compilation 2016-07-17 22:40:28 +03:00
nrand48.c LGPL 2011-11-27 22:54:33 +01:00
pathconf.c compat: Add pathconf dummy replacement for nacl 2017-03-31 14:53:32 +02:00
poll.c compat: poll: work around event loss on WIN32 2018-02-23 08:29:09 +01:00
realpath.c compat: add realpath used by test_media_subitems() 2016-10-10 23:53:55 +02:00
recvmsg.c compat Properly check if NativeClient 2017-07-06 17:27:58 +02:00
rewind.c LGPL 2011-11-27 22:54:33 +01:00
sendmsg.c compat Properly check if NativeClient 2017-07-06 17:27:58 +02:00
setenv.c LGPL 2011-11-27 22:54:33 +01:00
sigwait.c compat: Add sigwait dummy for NaCl 2017-03-28 15:54:00 +02:00
sincos.c compat: add sincos() and sincosf() replacements 2016-11-13 13:58:56 +02:00
strcasecmp.c LGPL 2011-11-27 22:54:33 +01:00
strcasestr.c LGPL 2011-11-27 22:54:33 +01:00
strdup.c LGPL 2011-11-27 22:54:33 +01:00
strlcpy.c LGPL 2011-11-27 22:54:33 +01:00
strndup.c LGPL 2011-11-27 22:54:33 +01:00
strnlen.c LGPL 2011-11-27 22:54:33 +01:00
strnstr.c Compat: remove trailing spaces 2016-01-23 14:47:51 +01:00
strsep.c LGPL 2011-11-27 22:54:33 +01:00
strtof.c LGPL 2011-11-27 22:54:33 +01:00
strtok_r.c LGPL 2011-11-27 22:54:33 +01:00
strtoll.c LGPL 2011-11-27 22:54:33 +01:00
strverscmp.c Add strverscmp from glibc 2.14.1 to compat. 2012-02-04 17:46:26 +01:00
swab.c LGPL 2011-11-27 22:54:33 +01:00
tdestroy.c compat: add tdestroy() 2018-02-20 21:45:18 +02:00
tfind.c compat: fix test for tree functions 2016-10-23 20:06:30 +03:00
timegm.c compat: remove 'const' from the prototype of timegm(). 2015-12-13 20:34:39 +02:00
timespec_get.c compat: provide a win32 specific version of timespec_get 2020-06-19 08:11:45 +02:00
vasprintf.c vasprintf: missing #include 2015-07-06 22:50:25 +03:00