mirror of
https://git.freebsd.org/ports.git
synced 2025-06-28 08:00:31 -04:00
OGDF (Open Graph Drawing Framework) is a self-contained C++ class library for the automatic layout of diagrams. OGDF offers sophisticated algorithms and data structures to use within your own applications or scientific projects. The library provides: * A wide range of graph drawing algorithms that allow to reuse and replace particular algorithm phases by using a dedicated module mechanism. * Sophisticated data structures that are commonly used in graph drawing, equipped with rich public interfaces. * Self-contained code that does not require any additional libraries (except for some optional branch-and-cut algorithms). WWW: http://www.ogdf.net
20 lines
666 B
C
20 lines
666 B
C
--- ogdf/basic/System.h.orig 2012-07-18 09:17:51.000000000 +0200
|
|
+++ ogdf/basic/System.h 2013-06-18 10:23:07.000000000 +0200
|
|
@@ -51,7 +51,7 @@
|
|
|
|
|
|
#include <ogdf/basic/basic.h>
|
|
-#if defined(OGDF_SYSTEM_OSX)
|
|
+#if defined(OGDF_SYSTEM_OSX) || defined(OGDF_SYSTEM_FREEBSD)
|
|
#include <stdlib.h>
|
|
#elif defined(OGDF_SYSTEM_UNIX) || defined(__MINGW32__)
|
|
#include <malloc.h>
|
|
@@ -178,7 +178,7 @@
|
|
size_t alignment = 16;
|
|
#ifdef OGDF_SYSTEM_WINDOWS
|
|
return _aligned_malloc(size,alignment);
|
|
-#elif defined(OGDF_SYSTEM_OSX)
|
|
+#elif defined(OGDF_SYSTEM_OSX) || defined(OGDF_SYSTEM_FREEBSD)
|
|
// malloc returns 16 byte aligned memory on OS X.
|
|
return malloc(size);
|
|
#else
|