From: Stuart C. <stu...@us...> - 2008-07-25 02:09:50
|
Update of /cvsroot/aaf/AAF/examples/com-api/ExportVC3 In directory sc8-pr-cvs11.sourceforge.net:/tmp/cvs-serv11969 Modified Files: framebuffer.h Log Message: Fix Solaris build by using memalign() instead of posix_memalign() Index: framebuffer.h =================================================================== RCS file: /cvsroot/aaf/AAF/examples/com-api/ExportVC3/framebuffer.h,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** framebuffer.h 23 Jul 2008 16:38:27 -0000 1.2 --- framebuffer.h 25 Jul 2008 02:09:53 -0000 1.3 *************** *** 55,58 **** --- 55,65 ---- static void malign_free ( void * pmem ) { free( pmem); } + #elif defined(__sun) // _WIN32 + + // Solaris 10 doesn't have posix_memalign(), but does have memalign() + #include <stdlib.h> + static byte* malign( size_t size, size_t alignment ) { return (byte*)memalign( alignment, size ); } + static void malign_free ( void * pmem ) { free( pmem); } + #else // _WIN32 |