This brings our tree to NetBSD 7.0, as found on -current on the 10-10-2015. This updates: - LLVM to 3.6.1 - GCC to GCC 5.1 - Replace minix/commands/zdump with usr.bin/zdump - external/bsd/libelf has moved to /external/bsd/elftoolchain/ - Import ctwm - Drop sprintf from libminc Change-Id: I149836ac18e9326be9353958bab9b266efb056f0
50 lines
952 B
C
50 lines
952 B
C
/* $NetBSD: lprefix.h,v 1.2 2015/02/02 14:03:05 lneto Exp $ */
|
|
|
|
/*
|
|
** Id: lprefix.h,v 1.2 2014/12/29 16:54:13 roberto Exp
|
|
** Definitions for Lua code that must come before any other header file
|
|
** See Copyright Notice in lua.h
|
|
*/
|
|
|
|
#ifndef lprefix_h
|
|
#define lprefix_h
|
|
|
|
|
|
#ifndef _KERNEL
|
|
/*
|
|
** Allows POSIX/XSI stuff
|
|
*/
|
|
#if !defined(LUA_USE_C89) /* { */
|
|
|
|
#if !defined(_XOPEN_SOURCE)
|
|
#define _XOPEN_SOURCE 600
|
|
#elif _XOPEN_SOURCE == 0
|
|
#undef _XOPEN_SOURCE /* use -D_XOPEN_SOURCE=0 to undefine it */
|
|
#endif
|
|
|
|
/*
|
|
** Allows manipulation of large files in gcc and some other compilers
|
|
*/
|
|
#if !defined(LUA_32BITS) && !defined(_FILE_OFFSET_BITS)
|
|
#define _LARGEFILE_SOURCE 1
|
|
#define _FILE_OFFSET_BITS 64
|
|
#endif
|
|
|
|
#endif /* } */
|
|
#endif
|
|
|
|
|
|
/*
|
|
** Windows stuff
|
|
*/
|
|
#if defined(_WIN32) /* { */
|
|
|
|
#if !defined(_CRT_SECURE_NO_WARNINGS)
|
|
#define _CRT_SECURE_NO_WARNINGS /* avoid warnings about ISO C functions */
|
|
#endif
|
|
|
|
#endif /* } */
|
|
|
|
#endif
|
|
|