Skip to content

Commit

Permalink
Fix windows build
Browse files Browse the repository at this point in the history
- Fix c11 check for windows
- add prototypes for STATIC_KQUEUE case
- comment out missing include file
- extend check for architecture in win_pthread
  • Loading branch information
bozzzzo committed Apr 7, 2014
1 parent 0609c0e commit aabd4ab
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 6 deletions.
4 changes: 4 additions & 0 deletions libdispatch/src/shared_constructor.c
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@ void __attribute((destructor)) cleanup(void);

#else

# if STATIC_KQUEUE
void libkqueue_thread_attach();
void libkqueue_thread_detach();
# endif
int init();
void cleanup();

Expand Down
6 changes: 3 additions & 3 deletions libkqueue/include/sys/event.h
Original file line number Diff line number Diff line change
Expand Up @@ -190,8 +190,8 @@ kevent(int kq, const struct kevent *changelist, int nchanges,
const struct timespec *timeout);

#ifdef MAKE_STATIC
__declspec(dllexport) int
libkqueue_init();
__declspec(dllexport) void
libkqueue_init(void);
#endif

#else
Expand All @@ -200,7 +200,7 @@ int kevent(int kq, const struct kevent *changelist, int nchanges,
struct kevent *eventlist, int nevents,
const struct timespec *timeout);
#ifdef MAKE_STATIC
void libkqueue_init();
void libkqueue_init(void);
#endif
#endif

Expand Down
2 changes: 1 addition & 1 deletion libkqueue/src/common/private.h
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ struct evfilt_data;

#if defined(_WIN32)
# include "../windows/platform.h"
# include "../common/queue.h"
//# include "../common/queue.h"
# if !defined(NDEBUG) && !defined(__GNUC__)
# include <crtdbg.h>
# endif
Expand Down
2 changes: 1 addition & 1 deletion libpthread_workqueue/src/private.h
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ extern unsigned int PWQ_ACTIVE_CPU;
rep/nop / 0xf3+0x90 are the same as the symbolic 'pause' instruction
*/

#if defined(__i386__) || defined(__x86_64__) || defined(__i386) || defined(__amd64)
#if defined(__i386__) || defined(__x86_64__) || defined(__i386) || defined(__amd64) || defined(_M_IX86)

#if defined(__SUNPRO_CC)

Expand Down
2 changes: 1 addition & 1 deletion libxdispatch/include/xdispatch/platform.h
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@
# define XDISPATCH_CPP11_TYPE_TRAITS 1
# define XDISPATCH_CPP11_MEMORY 1
# define XDISPATCH_CPP11_FUNCTIONAL 1
# elif __GLIBCXX__ < 20120322 || ( !XDISPATCH_CPP11 )
# elif __GLIBCXX__ < 20120322 && ( !XDISPATCH_CPP11 )
# define XDISPATCH_TR1_FUNCTIONAL 1
# include <tr1/functional>
# endif // if __GLIBCXX__ < 20120322
Expand Down

0 comments on commit aabd4ab

Please sign in to comment.