From 486e6a9e674a03cfaf9b5e56cc90c3bad7e63f24 Mon Sep 17 00:00:00 2001
From: Mathieu Faverge <mathieu.faverge@inria.fr>
Date: Wed, 23 Aug 2017 00:20:15 +0200
Subject: [PATCH] Protect lapacke include for simulation

---
 compute/zgesvd.c | 2 +-
 compute/zheevd.c | 2 +-
 compute/zhetrd.c | 4 +++-
 3 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/compute/zgesvd.c b/compute/zgesvd.c
index bfcb72de3..be26ed8a1 100644
--- a/compute/zgesvd.c
+++ b/compute/zgesvd.c
@@ -23,12 +23,12 @@
  * @precisions normal z -> s d c
  *
  **/
+#include "control/common.h"
 #include <stdio.h>
 #include <string.h>
 #if !defined(CHAMELEON_SIMULATION)
 #include <coreblas/lapacke.h>
 #endif
-#include "control/common.h"
 
 /***************************************************************************//**
  *
diff --git a/compute/zheevd.c b/compute/zheevd.c
index f1d059fc4..ccd4db8bb 100644
--- a/compute/zheevd.c
+++ b/compute/zheevd.c
@@ -23,11 +23,11 @@
  * @precisions normal z -> s d c
  *
  **/
+#include "control/common.h"
 #include <string.h>
 #if !defined(CHAMELEON_SIMULATION)
 #include <coreblas/lapacke.h>
 #endif
-#include "control/common.h"
 
 /***************************************************************************//**
  *
diff --git a/compute/zhetrd.c b/compute/zhetrd.c
index 30ad0ff7a..e3390e8fb 100644
--- a/compute/zhetrd.c
+++ b/compute/zhetrd.c
@@ -25,8 +25,10 @@
  * @precisions normal z -> s d c
  *
  **/
-#include <coreblas/lapacke.h>
 #include "control/common.h"
+#if !defined(CHAMELEON_SIMULATION)
+#include <coreblas/lapacke.h>
+#endif
 
 /***************************************************************************//**
  *
-- 
GitLab