Skip to content

Commit

Permalink
talloc: fixes for Mac
Browse files Browse the repository at this point in the history
  • Loading branch information
aras-p committed Aug 4, 2010
1 parent d163ef6 commit ceee99e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion src/glsl/msvc/talloc/talloc.c
Expand Up @@ -37,6 +37,8 @@
#define TALLOC_MIN(a,b) ((a)<(b)?(a):(b))
#ifdef _MSC_VER
typedef size_t ssize_t;
#endif
#ifdef __cplusplus
extern "C" {
#endif

Expand Down Expand Up @@ -1220,6 +1222,6 @@ int talloc_is_parent(const void *context, const void *ptr)
return 0;
}

#ifdef _MSC_VER
#ifdef __cplusplus
}
#endif
4 changes: 2 additions & 2 deletions src/glsl/msvc/talloc/talloc.h
Expand Up @@ -29,7 +29,7 @@
#include <stdio.h>
#include <stdarg.h>

#ifdef _MSC_VER
#ifdef __cplusplus
extern "C" {
#endif

Expand Down Expand Up @@ -123,7 +123,7 @@ char *talloc_vasprintf_append(char *s, const char *fmt, va_list ap) PRINTF_ATTRI
char *talloc_asprintf(const void *t, const char *fmt, ...) PRINTF_ATTRIBUTE(2,3);
char *talloc_asprintf_append(char *s, const char *fmt, ...) PRINTF_ATTRIBUTE(2,3);

#ifdef _MSC_VER
#ifdef __cplusplus
}
#endif

Expand Down

0 comments on commit ceee99e

Please sign in to comment.