[hipl-commit] [trunk] Rev 4345: Conditionally compile lib/core/sqlitedbapi.c instead of enclosing it by #ifdef.

  • From: Diego Biurrun <diego@xxxxxxxxxx>
  • To: hipl-commit@xxxxxxxxxxxxx
  • Date: Tue, 20 Apr 2010 13:24:09 +0300

Committer: Diego Biurrun <diego@xxxxxxxxxx>
Date: 20/04/2010 at 13:24:09
Revision: 4345
Revision-id: diego@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Branch nick: trunk

Log:
  Conditionally compile lib/core/sqlitedbapi.c instead of enclosing it by 
#ifdef.

Modified:
  M  Makefile.am
  M  lib/core/sqlitedbapi.c

=== modified file 'Makefile.am'
--- Makefile.am 2010-04-20 09:25:50 +0000
+++ Makefile.am 2010-04-20 10:23:34 +0000
@@ -237,7 +237,6 @@
                                  lib/core/message.c         \
                                  lib/core/prefix.c          \
                                  lib/core/solve.c           \
-                                 lib/core/sqlitedbapi.c     \
                                  lib/core/straddr.c         \
                                  lib/core/transform.c       \
                                  lib/core/util.c            \
@@ -246,6 +245,10 @@
                                  lib/tool/nlink.c           \
                                  lib/tool/pk.c
 
+if HIP_AGENT
+lib_core_libhipcore_la_SOURCES += lib/core/sqlitedbapi.c
+endif
+
 if HIP_DHT
 lib_core_libhipcore_la_SOURCES += lib/dht/libhipdht.c      \
                                   lib/dht/libhipdhtxml.c

=== modified file 'lib/core/sqlitedbapi.c'
--- lib/core/sqlitedbapi.c      2010-03-18 21:10:33 +0000
+++ lib/core/sqlitedbapi.c      2010-04-20 10:23:34 +0000
@@ -7,9 +7,6 @@
  * @author Samu Varjonen
  */
 
-#include "config.h"
-#ifdef CONFIG_HIP_AGENT
-
 #include "sqlitedbapi.h"
 
 /**
@@ -200,5 +197,3 @@
 out_err:
     return err;
 }
-
-#endif /* CONFIG_HIP_AGENT */

Other related posts:

  • » [hipl-commit] [trunk] Rev 4345: Conditionally compile lib/core/sqlitedbapi.c instead of enclosing it by #ifdef. - Diego Biurrun