OSDN Git Service

Add _XOPEN_SOURCE #define. This is necessary for (s)random(), which are XSI
authorDiego Biurrun <diego@biurrun.de>
Tue, 24 Mar 2009 16:28:48 +0000 (16:28 +0000)
committerDiego Biurrun <diego@biurrun.de>
Tue, 24 Mar 2009 16:28:48 +0000 (16:28 +0000)
extensions of POSIX. Avoids implicit declaration warnings on some systems.

Originally committed as revision 18178 to svn://svn.ffmpeg.org/ffmpeg/trunk

tools/trasher.c

index baf1bc3..c7a0c7a 100644 (file)
@@ -18,6 +18,7 @@
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  */
 
+#define _XOPEN_SOURCE 600
 #include <stdio.h>
 #include <stdlib.h>
 #include <time.h>