From af847d758edb676493c46bd8ed697560d741a53c Mon Sep 17 00:00:00 2001 From: David Rose Date: Sat, 24 Oct 2009 04:57:46 +0000 Subject: [PATCH] protect under HAVE_AUDIO --- panda/src/pgui/pgItem.cxx | 6 ++++-- panda/src/pgui/pgItem.h | 5 ++++- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/panda/src/pgui/pgItem.cxx b/panda/src/pgui/pgItem.cxx index 576a69665f..f685c9dbf8 100644 --- a/panda/src/pgui/pgItem.cxx +++ b/panda/src/pgui/pgItem.cxx @@ -103,8 +103,10 @@ PGItem(const PGItem ©) : _has_frame(copy._has_frame), _frame(copy._frame), _state(copy._state), - _flags(copy._flags), - _sounds(copy._sounds) + _flags(copy._flags) +#ifdef HAVE_AUDIO + , _sounds(copy._sounds) +#endif { _notify = NULL; _region = new PGMouseWatcherRegion(this); diff --git a/panda/src/pgui/pgItem.h b/panda/src/pgui/pgItem.h index 55bb2f01b0..6a222b1422 100644 --- a/panda/src/pgui/pgItem.h +++ b/panda/src/pgui/pgItem.h @@ -25,13 +25,16 @@ #include "nodePath.h" #include "luse.h" #include "pointerTo.h" -#include "audioSound.h" #include "textNode.h" #include "plane.h" #include "pmap.h" #include "lightReMutex.h" #include "lightReMutexHolder.h" +#ifdef HAVE_AUDIO +#include "audioSound.h" +#endif + class PGTop; class MouseWatcherParameter; class AudioSound;