]> git.draconx.ca Git - liblbx.git/blobdiff - src/misc.h
liblbx: Use unconditional includes of <config.h>.
[liblbx.git] / src / misc.h
index 5e5947a3597df05bbee747271fae9d0255483454..e8ba4475142dca6bf36fe53b2ac1ab134fef98a6 100644 (file)
@@ -1,17 +1,13 @@
 #ifndef LBX_MISC_H_
 #define LBX_MISC_H_
 
-#ifdef HAVE_CONFIG_H
-#      include "config.h"
-#endif
-
 #include <stdio.h>
 
 #define MIN(a,b) (((a)<(b))?(a):(b))
 #define MAX(a,b) (((a)>(b))?(a):(b))
 
 #ifndef NDEBUG
-#      define _lbx_dbgprint(str) (fprintf(stderr, str " [%s, %s:%d]", \
+#      define _lbx_dbgprint(str) (fprintf(stderr, str " [%s, %s:%d]\n", \
                                           __func__, __FILE__, __LINE__))
 #      define _lbx_assert(expr) ((!(expr)) \
                ? (_lbx_dbgprint("format assertion failed: " #expr), 0) \
 #      define _lbx_assert(expr) ((expr) ? 1 : 0)
 #endif
 
-/** _lbx_fseek()
- * Seeks the specified file to the specified offset, given that the file is
- * currently positioned at *current.  If the file does not support seeking,
- * and offset > *current, perform the seek by reading (and discarding) data.
- */
-int _lbx_fseek(FILE *f, long *current, size_t offset);
-
 #endif