Commit b4ec8dcc authored by Marcos Fouces's avatar Marcos Fouces

New upstream version 5.8.3

parent d241423e
......@@ -6,6 +6,9 @@ Legend:
- Bug fixed
! Known issue / missing feature
T50 5.8.3 - Nov 24th, 2018
- Makefile now checks GCC version (5 or greater needed!)
T50 5.8.2 - Sep 10th, 2018
- cksum() RFC 1071 compliance and endianess fixes.
......
......@@ -10,9 +10,8 @@
# This way you don't need anything other than this makefile to
# compile the project.
VERSION=5.8.2
VERSION=5.8.3
# Change it to clang if you feel lucky!
CC=gcc
LD=$(CC)
......@@ -21,6 +20,14 @@ CFLAGS=-std=gnu11
LDFLAGS=
LDLIBS=
# Check GCC version (must be 5 or greater)
# OBS: This makes compilation GCC dependent (cannot use clang).
# If you are feeling lucky, comment these lines and change CC to 'clang'.
GCCVERSION=$(shell expr "`gcc -dumpversion | sed -n 's/^\([0-9]\+\)\.*.*$$/\1/p'`" \>= 5)
ifeq "$(GCCVERSION)" "0"
$(error "T50 will compile only with GCC 5 or greater")
endif
# Just define DEBUG environment var to compile for debugging:
#
# $ DEBUG=1 make
......
#ifndef __CONFIGURATION_H_INCLUDED__
#define __CONFIGURATION_H_INCLUDED__
#if !defined(__GNUC__) && (__GNUC__ < 5) && (__STDC_VERSION__ < 201112)
#error "Need GCC 5 or greater, with C11 standard support, to compile!"
#endif
/* Name of package */
#define PACKAGE "t50"
/* Define to the version of this package. */
#define PACKAGE_VERSION "5.8.2"
#define PACKAGE_VERSION "5.8.3"
/* Define to the address where bug reports for this package should be sent. */
#define PACKAGE_BUGREPORT "t50-dev@googlegroups.com"
......
......@@ -2,10 +2,7 @@
#define __RANDOMIZER_H__
#include <stdint.h>
#if !defined(__GNUC__) || (__STDC_VERSION__ < 201112)
#error "Need GCC with C11 standard support to compile!"
#endif
#include <configuration.h>
/* Randomizer macros and function */
/* NOTE: int8_t, int16_t, int32_t are synonimous of
......@@ -14,6 +11,7 @@
/* Sometipes, v is a bitfield and NOT compatible with primitive types.
Because of this, the default selector is necessary! */
/* RANDOM call results have not endianess! */
#define __RND(v) _Generic((v), \
_Bool: (!!(v) ? (v) : RANDOM()), \
int8_t: (!!(v) ? (v) : RANDOM()), \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment