view dvdread_internal.h @ 6:e5663591d13c src

gettimeofday() doesn't exist in windows, but recent mingw32 runtime include a replacement that clashes with mingw32's one. This patch will check for it in configure.ac and define the private function only if gettimeofday() is not defined. Patch by Rafael Carr (funman videolan org)
author nicodvb
date Thu, 05 Jun 2008 08:52:00 +0000
parents fdbae45c30fc
children ac07d427fbc6
line wrap: on
line source

#ifndef DVDREAD_INTERNAL_H
#define DVDREAD_INTERNAL_H

#ifdef _MSC_VER
#include <unistd.h>
#endif /* _MSC_VER */

#define CHECK_VALUE(arg) \
 if(!(arg)) { \
   fprintf(stderr, "\n*** libdvdread: CHECK_VALUE failed in %s:%i ***" \
                   "\n*** for %s ***\n\n", \
                   __FILE__, __LINE__, # arg ); \
 }

#endif /* DVDREAD_INTERNAL_H */