diff options
author | Arnold D. Robbins <arnold@skeeve.com> | 2010-07-16 14:47:02 +0300 |
---|---|---|
committer | Arnold D. Robbins <arnold@skeeve.com> | 2010-07-16 14:47:02 +0300 |
commit | 315bd501ca696bc3e3c938b4604d8dac7a6f512f (patch) | |
tree | cf992f0df002126292f7487ca6c0d36d7fe748b9 /random.h | |
parent | 85c0d5edb781c9f31b79e48452b1ca68643f41de (diff) | |
download | egawk-315bd501ca696bc3e3c938b4604d8dac7a6f512f.tar.gz egawk-315bd501ca696bc3e3c938b4604d8dac7a6f512f.tar.bz2 egawk-315bd501ca696bc3e3c938b4604d8dac7a6f512f.zip |
Move to gawk 3.1.5.
Diffstat (limited to 'random.h')
-rw-r--r-- | random.h | 20 |
1 files changed, 14 insertions, 6 deletions
@@ -3,7 +3,7 @@ */ /* - * Copyright (C) 1996, 2001 the Free Software Foundation, Inc. + * Copyright (C) 1996, 2001, 2004, 2005 the Free Software Foundation, Inc. * * This file is part of GAWK, the GNU implementation of the * AWK Programming Language. @@ -20,18 +20,26 @@ * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA */ -#ifdef HAVE_CONFIG_H -#include <config.h> -#endif - #define initstate gawk_initstate #define setstate gawk_setstate #define random gawk_random #define srandom gawk_srandom +#if SIZEOF_UNSIGNED_INT == 4 +typedef unsigned int gawk_uint32_t; +typedef int gawk_int32_t; +#else +#if SIZEOF_UNSIGNED_LONG == 4 +typedef unsigned long gawk_uint32_t; +typedef long gawk_int32_t; +#endif +#endif +#define uint32_t gawk_uint32_t +#define int32_t gawk_int32_t + #ifdef __STDC__ #undef __P #define __P(s) s |