diff options
| author | Douglas B. Rumbaugh <doug@douglasrumbaugh.com> | 2025-09-19 16:54:04 -0400 |
|---|---|---|
| committer | Douglas B. Rumbaugh <doug@douglasrumbaugh.com> | 2025-09-19 16:55:35 -0400 |
| commit | 292c5fb43f5402bcbd2c26607543f5bfc815e8e5 (patch) | |
| tree | 01f558b6b2ede7ea0786f1366a56fec873456ccc /include/cumsum.h | |
| parent | 44aa2be93d86e5bac3768962f4fea14a4b3778d3 (diff) | |
| download | math-utils-292c5fb43f5402bcbd2c26607543f5bfc815e8e5.tar.gz | |
Portability and Bugfixes
Diffstat (limited to 'include/cumsum.h')
| -rw-r--r-- | include/cumsum.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/include/cumsum.h b/include/cumsum.h index 50ff0b1..1d8387b 100644 --- a/include/cumsum.h +++ b/include/cumsum.h @@ -1,8 +1,11 @@ /* */ -#ifndef H_CDF -#define H_CDF +#ifndef H_CUMSUM +#define H_CUMSUM + +#define _GNU_SOURCE /* Enable getline on Linux */ +#define _POSIX_C_SOURCE 200809L /* Enable POSIX features */ #include <stdlib.h> #include <errno.h> @@ -12,6 +15,7 @@ #include <getopt.h> #include <string.h> #include <stdint.h> +#include <inttypes.h> #include <assert.h> typedef union { @@ -25,10 +29,6 @@ static void help(); static int process_data(FILE *file); static void print_sum(Number sum); -static int read_data_int(FILE *file, Number *num); -static int read_data_uint(FILE *file, Number *num); -static int read_data_fp(FILE *file, Number *num); - #endif |