From da1700f52db01eaa2c4081bccd48307bb35f2892 Mon Sep 17 00:00:00 2001
From: Andre Anjos <andre.dos.anjos@gmail.com>
Date: Sat, 29 Jun 2013 13:17:46 +0200
Subject: [PATCH] Prepare for Bob 1.2.0 release

---
 xbob/flandmark/ext/ext.cpp | 12 ++++++++++--
 1 file changed, 10 insertions(+), 2 deletions(-)

diff --git a/xbob/flandmark/ext/ext.cpp b/xbob/flandmark/ext/ext.cpp
index 9fc71a1..767ad38 100644
--- a/xbob/flandmark/ext/ext.cpp
+++ b/xbob/flandmark/ext/ext.cpp
@@ -8,8 +8,16 @@
 #include <boost/python.hpp>
 #include <boost/shared_ptr.hpp>
 #include <boost/shared_array.hpp>
-#include <bob/core/python/gil.h>
-#include <bob/core/python/ndarray.h>
+
+#include <bob/config.h>
+#ifdef BOB_API_VERSION
+#  include <bob/python/gil.h>
+#  include <bob/python/ndarray.h>
+#else
+#  include <bob/core/python/gil.h>
+#  include <bob/core/python/ndarray.h>
+#endif
+
 #include <cv.h>
 
 #include "flandmark_detector.h"
-- 
GitLab