Eliminate a warning about a symbol being redefined

This commit is contained in:
Gregory Nutt 2016-01-23 17:03:46 -06:00
parent 615e640913
commit e39c85b718
2 changed files with 24 additions and 6 deletions

View File

@ -50,9 +50,18 @@
* Pre-processor Definitions * Pre-processor Definitions
****************************************************************************/ ****************************************************************************/
#define USEC_PER_MSEC 1000 #ifndef USEC_PER_MSEC
#define MSEC_PER_SEC 1000 # define USEC_PER_MSEC 1000L
#define USEC_PER_SEC (USEC_PER_MSEC * MSEC_PER_SEC) #endif
#ifndef MSEC_PER_SEC
# define MSEC_PER_SEC 1000L
#endif
#ifndef USEC_PER_SEC
# define USEC_PER_SEC (USEC_PER_MSEC * MSEC_PER_SEC)
#endif
#define SHORT_DELAY (USEC_PER_SEC / 3) #define SHORT_DELAY (USEC_PER_SEC / 3)
/**************************************************************************** /****************************************************************************

View File

@ -50,9 +50,18 @@
* Pre-processor Definitions * Pre-processor Definitions
****************************************************************************/ ****************************************************************************/
#define USEC_PER_MSEC 1000 #ifndef USEC_PER_MSEC
#define MSEC_PER_SEC 1000 # define USEC_PER_MSEC 1000L
#define USEC_PER_SEC (USEC_PER_MSEC * MSEC_PER_SEC) #endif
#ifndef MSEC_PER_SEC
# define MSEC_PER_SEC 1000L
#endif
#ifndef USEC_PER_SEC
# define USEC_PER_SEC (USEC_PER_MSEC * MSEC_PER_SEC)
#endif
#define SHORT_DELAY (USEC_PER_SEC / 3) #define SHORT_DELAY (USEC_PER_SEC / 3)
/**************************************************************************** /****************************************************************************