Remove a couple of warnings, some of which were removed in the pbatard branch.

This commit is contained in:
R. Bernstein
2012-03-03 19:41:48 -05:00
parent 2145a5c805
commit e5ac559bcd
3 changed files with 109 additions and 92 deletions

View File

@@ -20,12 +20,9 @@
Regression test for MMC commands involving read/write access.
*/
#ifdef HAVE_CONFIG_H
# include "config.h"
# define __CDIO_CONFIG_H__ 1
#include "config.h"
#define __CDIO_CONFIG_H__ 1
#endif
#include <cdio/cdio.h>
#include <cdio/logging.h>
#include <cdio/mmc_cmds.h>
#ifdef HAVE_STDIO_H
# include <stdio.h>
@@ -36,14 +33,27 @@
#ifdef HAVE_STDLIB_H
# include <stdlib.h>
#endif
#ifdef HAVE_UNISTD_H
# include <unistd.h>
#endif
#ifdef HAVE_STRING_H
# include <string.h>
#endif
#if !defined(HAVE_SLEEP) && defined(_WIN32)
# include <windows.h>
# define sleep(s) Sleep(1000*s)
#endif
#ifndef HAVE_USLEEP
# error usleep() unimplemented
# if !defined(HAVE_SLEEP) && defined(_WIN32)
# include <windows.h>
# define sleep(s) Sleep(1000*s)
# endif
#endif
#include <cdio/cdio.h>
#include <cdio/logging.h>
#include <cdio/mmc_cmds.h>
#define SKIP_TEST 77
/* gcc may warn if no prototypes are given before function definition */