Fix MinGW32 build

Misplaced preprocessor directives caused MinGW builds to break. Reported
by vaseleos0.

Signed-off-by: Claudio Matsuoka <cmatsuoka@gmail.com>
master
Claudio Matsuoka 13 years ago
parent a0ab0048ae
commit 62206f5f47
  1. 4
      Changelog
  2. 8
      src/main.c

@ -2,8 +2,8 @@ Stable versions
---------------
4.0.3 ():
- Fix native-endian support in coreaudio driver (reported by
Misty De Meo)
- Fix native-endian coreaudio output (reported by Misty De Meo)
- Fix MinGW32 build (reported by vaseleos0)
New features requested by Benjamin Shadwick:
- Add commands '<' and '>' to jump to previous/next sequence

@ -192,11 +192,11 @@ int main(int argc, char **argv)
int skipprev;
FILE *f = NULL;
int val, lf_flag;
int flags;
int played;
#ifndef WIN32
struct timeval tv;
struct timezone tz;
int flags;
int played;
gettimeofday(&tv, &tz);
srand(tv.tv_usec);
@ -286,10 +286,10 @@ int main(int argc, char **argv)
#ifdef SIGTSTP
signal(SIGCONT, sigcont_handler);
signal(SIGTSTP, sigtstp_handler);
sigcont_handler(0);
#endif
#endif
sigcont_handler(0);
xc = xmp_create_context();
skipprev = 0;
@ -442,7 +442,9 @@ int main(int argc, char **argv)
}
}
#ifdef SIGTSTP
sigcont_handler(0);
#endif
if (foreground_out && opt.verbose > 0) {
info_frame(&mi, &fi, &control, refresh_status);
refresh_status = 0;

Loading…
Cancel
Save