libxmp / xmp-cli

Command-line mod player using libxmp
GNU General Public License v2.0
76 stars 22 forks source link

Replace direct use of usleep() #38

Closed ccawley2011 closed 3 years ago

ccawley2011 commented 3 years ago

This avoids a deprecation warning when using usleep() with MinGW32.

main.c: In function 'check_pause':
main.c:158:4: warning: 'usleep' is deprecated [-Wdeprecated-declarations]
  158 |    usleep(100000);
      |    ^~~~~~
In file included from main.c:19:
d:\mingw\include\unistd.h:104:5: note: declared here
  104 | int usleep( useconds_t period ){ return __mingw_sleep( 0, 1000 * period ); }
      |     ^~~~~~