Changeset 5 in libcf for trunk/include/cf_thread.h


Ignore:
Timestamp:
01/30/13 13:12:40 (11 years ago)
Author:
cheese
Message:

#1 add windows project and fix build compatibility

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/cf_thread.h

    r4 r5  
    99#ifdef _WIN32
    1010//# include <stddef.h>
    11 # define CF_THREAD_RETURN   uintptr_t
     11# define CF_THREAD_RETURN   unsigned int
    1212# define CF_THREAD_CALL     __stdcall
    1313#else // #ifdef _WIN32
     
    1616#endif // #ifdef _WIN32
    1717
    18 #define CF_THREAD_FUNCTION  CF_THREAD_RETURN CF_THREAD_CALL
     18typedef CF_THREAD_RETURN  (CF_THREAD_CALL * CF_Thread_Function) (void *);
    1919
    2020#define CF_ERROR_THREAD                 CF_ERROR_BASE * 4
     
    3535CF_EXPORT int
    3636CF_Thread_Create    (CF_Thread          * threadID,
    37                      CF_THREAD_RETURN   callback,
     37                     CF_Thread_Function callback,
    3838                     void               * arg);
    3939
Note: See TracChangeset for help on using the changeset viewer.