]> hackdaworld.org Git - physik/nlsop.git/commitdiff
-
authorhackbard <hackbard>
Tue, 10 Jun 2003 00:09:30 +0000 (00:09 +0000)
committerhackbard <hackbard>
Tue, 10 Jun 2003 00:09:30 +0000 (00:09 +0000)
dfbapi.h
nlsop.c

index a2a37a98cc214cbdc9d528b0031ea3306a00f08c..8ffacc8ec76467736c50b8b7c50a96ac8d3a9c7c 100644 (file)
--- a/dfbapi.h
+++ b/dfbapi.h
@@ -8,7 +8,9 @@
 #ifndef DFBAPI_H
 #define DFBAPI_H
 
+#ifdef USE_DFB_API
 #include <directfb.h>
+#endif
 
 /* two dimensional lattice */
 
diff --git a/nlsop.c b/nlsop.c
index f2acfb4587bc28579ad48c16cc733587bc3630de..dc08533ad18df86231381c8044a704987a306af0 100644 (file)
--- a/nlsop.c
+++ b/nlsop.c
@@ -524,6 +524,7 @@ int main(int argc,char **argv)
   puts("NODFB defined, run with -S option");
   return -1;
  }
+#endif
 
  if(!strcmp(r_file,"")) rand_init(NULL);
  else rand_init(r_file);