Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
math/readstat: repair build (missing prototype in modern C)
- Loading branch information
Adriaan de Groot
authored and
Adriaan de Groot
committed
Mar 26, 2023
1 parent
567a4ec
commit ccb492f
Showing
2 changed files
with
12 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
--- src/readstat_bits.c.orig 2023-03-16 22:38:26 UTC | ||
+++ src/readstat_bits.c | ||
@@ -8,7 +8,7 @@ | ||
|
||
#include "readstat_bits.h" | ||
|
||
-int machine_is_little_endian() { | ||
+int machine_is_little_endian(void) { | ||
int test_byte_order = 1; | ||
return ((char *)&test_byte_order)[0]; | ||
} |