use <stdint.h> everywhere

This commit is contained in:
tth
2021-05-20 09:31:28 +02:00
parent 802ec6e9c1
commit 72e162e4cf
52 changed files with 67 additions and 8 deletions
+7 -1
View File
@@ -3,11 +3,12 @@
* --------------------------------
*
* you can see some use in 'tools/fimgfx.c', so you can thing
* about the 'maxval' parameter. C'est touchy :)
* about the 'maxval' parameter. It was touchy :)
*/
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include <unistd.h>
#include <string.h>
#include <math.h>
@@ -25,6 +26,11 @@ if (!strcmp(str, "sqrt")) return CONTRAST_SQRT;
if (!strcmp(str, "pow2")) return CONTRAST_POW2;
if (!strcmp(str, "cos01")) return CONTRAST_COS01;
if (!strcmp(str, "cos010")) return CONTRAST_COS010;
if (!strcmp(str, "xper")) return CONTRAST_XPER;
#if DEBUG_LEVEL
fprintf(stderr, "%s: unknow contrast name '%s'\n", __func__, str);
#endif
return -1;
}