Skip to content

Commit

Permalink
Merge pull request #51 from marshall/macPthreadQueue
Browse files Browse the repository at this point in the history
move pthread_queue.h to include, fixing build bustage on Mac OS X
  • Loading branch information
johandc committed Jul 1, 2015
2 parents 589f050 + 19be5b0 commit edadd3d
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 74 deletions.
5 changes: 3 additions & 2 deletions include/csp/arch/csp_semaphore.h
Expand Up @@ -48,7 +48,8 @@ typedef pthread_mutex_t csp_mutex_t;
/* MAC OS X interface */
#if defined(CSP_MACOSX)

#include "macosx/pthread_queue.h"
#include <pthread.h>
#include "posix/pthread_queue.h"

#define CSP_SEMAPHORE_OK PTHREAD_QUEUE_OK
#define CSP_SEMAPHORE_ERROR PTHREAD_QUEUE_EMPTY
Expand All @@ -58,7 +59,7 @@ typedef pthread_mutex_t csp_mutex_t;
typedef pthread_queue_t * csp_bin_sem_handle_t;
typedef pthread_queue_t * csp_mutex_t;

#endif // CSP_POSIX
#endif // CSP_MACOSX

#if defined(CSP_WINDOWS)

Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion src/arch/macosx/csp_queue.c
Expand Up @@ -24,7 +24,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
/* CSP includes */
#include <csp/csp.h>

#include "pthread_queue.h"
#include <csp/arch/posix/pthread_queue.h>
#include <csp/arch/csp_queue.h>


Expand Down
2 changes: 1 addition & 1 deletion src/arch/macosx/pthread_queue.c
Expand Up @@ -32,7 +32,7 @@ Inspired by c-pthread-queue by Matthew Dickinson
#include <mach/mach.h>

/* CSP includes */
#include "pthread_queue.h"
#include <csp/arch/posix/pthread_queue.h>

pthread_queue_t * pthread_queue_create(int length, size_t item_size) {

Expand Down
68 changes: 0 additions & 68 deletions src/arch/macosx/pthread_queue.h

This file was deleted.

2 changes: 1 addition & 1 deletion src/arch/posix/csp_queue.c
Expand Up @@ -24,7 +24,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
/* CSP includes */
#include <csp/csp.h>

#include "pthread_queue.h"
#include <csp/arch/posix/pthread_queue.h>
#include <csp/arch/csp_queue.h>


Expand Down
2 changes: 1 addition & 1 deletion src/arch/posix/pthread_queue.c
Expand Up @@ -32,7 +32,7 @@ Inspired by c-pthread-queue by Matthew Dickinson
#include <sys/time.h>

/* CSP includes */
#include "pthread_queue.h"
#include <csp/arch/posix/pthread_queue.h>

pthread_queue_t * pthread_queue_create(int length, size_t item_size) {

Expand Down

0 comments on commit edadd3d

Please sign in to comment.