* Gcc libc has broken header files on the msp430.

This commit is contained in:
bg- 2007-06-05 10:02:53 +00:00
parent 0e515a5472
commit 25681c9aaa

View file

@ -28,11 +28,15 @@
* *
* This file is part of the Contiki operating system. * This file is part of the Contiki operating system.
* *
* @(#)$Id: rand.c,v 1.5 2007/06/04 18:03:58 bg- Exp $ * @(#)$Id: rand.c,v 1.6 2007/06/05 10:02:53 bg- Exp $
*/ */
#include <stdlib.h> #include <stdlib.h>
#if defined(__GNUC__) && defined(__MSP430__)
#undef RAND_MAX /* Broken header files! */
#endif
#include "lib/assert.h" #include "lib/assert.h"
#ifdef RAND_MAX #ifdef RAND_MAX