Make the pipe headers C++ friendly.

This commit is contained in:
José Fonseca
2008-02-25 20:05:41 +09:00
parent c8b069cc1e
commit e4e3008923
8 changed files with 75 additions and 14 deletions

View File

@@ -34,13 +34,13 @@
#include <math.h>
#ifdef WIN32
#ifdef __cplusplus
extern "C"
{
extern "C" {
#endif
#ifdef WIN32
void * __stdcall
EngAllocMem(
unsigned long Flags,
@@ -51,10 +51,6 @@ void __stdcall
EngFreeMem(
void *Mem );
#ifdef __cplusplus
}
#endif
static INLINE void *
MALLOC( unsigned size )
{
@@ -379,4 +375,8 @@ extern void pipe_copy_rect(ubyte * dst, unsigned cpp, unsigned dst_pitch,
int src_pitch, unsigned src_x, int src_y);
#ifdef __cplusplus
}
#endif
#endif