diff -u -r -p DirectFB-1.2.0.orig/lib/direct/util.h DirectFB-1.2.0/lib/direct/util.h
--- DirectFB-1.2.0.orig/lib/direct/util.h	2008-06-02 07:07:44.000000000 +0100
+++ DirectFB-1.2.0/lib/direct/util.h	2008-10-06 17:36:24.685178349 +0100
@@ -29,6 +29,10 @@
 #ifndef __DIRECT__UTIL_H__
 #define __DIRECT__UTIL_H__
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 #include <unistd.h>
 
 #ifdef _POSIX_PRIORITY_SCHEDULING
@@ -310,5 +314,8 @@ direct_log2( int val )
      return ret;
 }
 
+#ifdef __cplusplus
+}
+#endif
 
 #endif
Only in DirectFB-1.2.0/lib/direct: util.h~
