Mercurial > molko
comparison libmlk-util/mlk/util/util.h @ 571:cba66f7d8a53
misc: various windows fixes
author | David Demelier <markand@malikania.fr> |
---|---|
date | Thu, 09 Mar 2023 22:33:46 +0100 |
parents | a2443afe8a1f |
children |
comparison
equal
deleted
inserted
replaced
570:aaf518c87628 | 571:cba66f7d8a53 |
---|---|
29 #include <limits.h> | 29 #include <limits.h> |
30 #include <stdio.h> | 30 #include <stdio.h> |
31 | 31 |
32 #if defined(__cplusplus) | 32 #if defined(__cplusplus) |
33 extern "C" { | 33 extern "C" { |
34 #endif | |
35 | |
36 #if defined(_MSC_VER) | |
37 # define MLK_THREAD_LOCAL | |
38 #else | |
39 # define MLK_THREAD_LOCAL _Thread_local | |
34 #endif | 40 #endif |
35 | 41 |
36 #if defined(MLK_HAVE_PATH_MAX) | 42 #if defined(MLK_HAVE_PATH_MAX) |
37 # define MLK_PATH_MAX PATH_MAX | 43 # define MLK_PATH_MAX PATH_MAX |
38 #else | 44 #else |