Browse Source

Let libburner warn programmers if they forget to set 64 bit off_t

tags/ZeroEightZero
Thomas Schmitt 10 years ago
parent
commit
e787d328c7
2 changed files with 8 additions and 1 deletions
  1. +1
    -1
      cdrskin/cdrskin_timestamp.h
  2. +7
    -0
      test/libburner.c

+ 1
- 1
cdrskin/cdrskin_timestamp.h View File

@@ -1 +1 @@
#define Cdrskin_timestamP "2010.03.29.103141"
#define Cdrskin_timestamP "2010.04.04.181237"

+ 7
- 0
test/libburner.c View File

@@ -732,6 +732,13 @@ int main(int argc, char **argv)
{
int ret;

/* A warning to programmers who start their own projekt from here. */
if (sizeof(off_t) != 8) {
fprintf(stderr,
"\nFATAL: Compile time misconfiguration. off_t is not 64 bit.\n\n");
exit(39);
}

ret = libburner_setup(argc, argv);
if (ret)
exit(ret);


Loading…
Cancel
Save