From 30e28cf7e166cf54b3a2a4fea5e6e134b5968812 Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Tue, 6 May 2014 06:14:20 -0500 Subject: Use compiler built-in macros to determine if argument parsing can use double or float for FLOAT arguments. (I.E. whether double fits in a long's memory.) Check in a way that the macros not being defined just gives us the shorter one. --- lib/pending.h | 8 -------- 1 file changed, 8 deletions(-) (limited to 'lib/pending.h') diff --git a/lib/pending.h b/lib/pending.h index 67605c0b..5e3b309f 100644 --- a/lib/pending.h +++ b/lib/pending.h @@ -1,13 +1,5 @@ // pending.h - header for pending.c -// Unfortunately, sizeof() doesn't work in a preprocessor test. TODO. - -//#if sizeof(double) <= sizeof(long) -//typedef double FLOAT; -//#else -typedef float FLOAT; -//#endif - // password.c #define MAX_SALT_LEN 20 //3 for id, 16 for key, 1 for '\0' #define SYS_FIRST_ID 100 -- cgit v1.2.3