annotate 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
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
3
fdbae45c30fc moved to src/ the sources files
nicodvb
parents:
diff changeset
1 #ifndef DVDREAD_INTERNAL_H
fdbae45c30fc moved to src/ the sources files
nicodvb
parents:
diff changeset
2 #define DVDREAD_INTERNAL_H
fdbae45c30fc moved to src/ the sources files
nicodvb
parents:
diff changeset
3
fdbae45c30fc moved to src/ the sources files
nicodvb
parents:
diff changeset
4 #ifdef _MSC_VER
fdbae45c30fc moved to src/ the sources files
nicodvb
parents:
diff changeset
5 #include <unistd.h>
fdbae45c30fc moved to src/ the sources files
nicodvb
parents:
diff changeset
6 #endif /* _MSC_VER */
fdbae45c30fc moved to src/ the sources files
nicodvb
parents:
diff changeset
7
fdbae45c30fc moved to src/ the sources files
nicodvb
parents:
diff changeset
8 #define CHECK_VALUE(arg) \
fdbae45c30fc moved to src/ the sources files
nicodvb
parents:
diff changeset
9 if(!(arg)) { \
fdbae45c30fc moved to src/ the sources files
nicodvb
parents:
diff changeset
10 fprintf(stderr, "\n*** libdvdread: CHECK_VALUE failed in %s:%i ***" \
fdbae45c30fc moved to src/ the sources files
nicodvb
parents:
diff changeset
11 "\n*** for %s ***\n\n", \
fdbae45c30fc moved to src/ the sources files
nicodvb
parents:
diff changeset
12 __FILE__, __LINE__, # arg ); \
fdbae45c30fc moved to src/ the sources files
nicodvb
parents:
diff changeset
13 }
fdbae45c30fc moved to src/ the sources files
nicodvb
parents:
diff changeset
14
fdbae45c30fc moved to src/ the sources files
nicodvb
parents:
diff changeset
15 #endif /* DVDREAD_INTERNAL_H */