[niepce] Needs assert.h as an include (when building non debug).
- From: Hubert Figuière <hub src gnome org>
- To: svn-commits-list gnome org
- Subject: [niepce] Needs assert.h as an include (when building non debug).
- Date: Wed, 27 May 2009 17:20:54 -0400 (EDT)
commit 41bba50a5defb7d5bcf62a393c86ad687285da5e
Author: Hubert Figuiere <hub figuiere net>
Date: Tue May 26 22:09:43 2009 -0400
Needs assert.h as an include (when building non debug).
---
ChangeLog | 5 +++++
src/fwk/base/debug.hpp | 4 ++++
2 files changed, 9 insertions(+), 0 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index c3004f3..093c1e4 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2009-05-26 Hubert Figuiere <hub figuiere net>
+
+ * src/fwk/base/debug.hpp:
+ Needs assert.h as an include (when building non debug).
+
2009-05-22 Hubert Figuiere <hub figuiere net>
* src/engine/library/thumbnailcache.cpp:
diff --git a/src/fwk/base/debug.hpp b/src/fwk/base/debug.hpp
index 31971b1..73fdd30 100644
--- a/src/fwk/base/debug.hpp
+++ b/src/fwk/base/debug.hpp
@@ -20,6 +20,10 @@
#ifndef __FWK_BASE_DEBUG_H__
#define __FWK_BASE_DEBUG_H__
+#ifndef DEBUG
+#include <assert.h>
+#endif
+
#ifdef __GNUC__
// we have too mark this as a system header because otherwise GCC barfs
// on variadic macros.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]