# include "config.h"
#endif
-#include <vlc/vlc.h>
+#include <vlc_common.h>
#include <vlc_input.h>
#include "history.h"
#include "xarray.h"
#ifdef HAVE_STDLIB_H
-# include <stdlib.h> /* realloc() */
+# include <stdlib.h> /* malloc() */
#endif
#undef HISTORY_DEBUG
/*****************************************************************************
* Local prototypes
*****************************************************************************/
+#ifdef HISTORY_DEBUG
static void history_Dump( history_t *p_history );
+#endif
/*****************************************************************************
* Local structure lock
return NULL;
}
-#ifndef HISTORY_DEBUG
- /* make dummy reference to history_Dump to avoid compiler warnings */
- while (0)
- {
- void *p_tmp;
-
- p_tmp = history_Dump;
- }
-#endif
-
return p_new_history;
}
return true;
}
+#ifdef HISTORY_DEBUG
static void history_Dump( history_t *p_history )
{
unsigned int i_count;
}
}
}
+#endif
bool history_GoForwardSavingCurrentItem ( history_t *p_history,
history_item_t *p_item )