X-Git-Url: https://pd.if.org/git/?p=pdclib;a=blobdiff_plain;f=platform%2Fwin32%2Ffunctions%2Fthreads%2Ftss_set.c;fp=platform%2Fwin32%2Ffunctions%2Fthreads%2Ftss_set.c;h=f81d274ef00b62939de68ddc76815e9f534dda52;hp=5ed15cea51ef6add8c9e78905f3a904fd198616d;hb=abc15df6b9fae3374d24c7cf5c3ab94c605b2a6d;hpb=8894c921674bb116d0a7b8f23a55311e7a768019 diff --git a/platform/win32/functions/threads/tss_set.c b/platform/win32/functions/threads/tss_set.c index 5ed15ce..f81d274 100644 --- a/platform/win32/functions/threads/tss_set.c +++ b/platform/win32/functions/threads/tss_set.c @@ -1,22 +1,22 @@ -#ifndef REGTEST -#include -#include - -int tss_set(tss_t key, void *val) -{ - if(TlsSetValue(key->_Key, val)) - return thrd_success; - return thrd_error; -} -#endif - -#ifdef TEST -#include "_PDCLIB_test.h" - -/* Tested in tss_get.c */ -int main( void ) -{ - return TEST_RESULTS; -} - +#ifndef REGTEST +#include +#include + +int tss_set(tss_t key, void *val) +{ + if(TlsSetValue(key->_Key, val)) + return thrd_success; + return thrd_error; +} +#endif + +#ifdef TEST +#include "_PDCLIB_test.h" + +/* Tested in tss_get.c */ +int main( void ) +{ + return TEST_RESULTS; +} + #endif \ No newline at end of file