ObjFW  Check-in [a50ae2cc3f]

Overview
Comment:ofhttp: Make GCC 5.3 happy again
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: a50ae2cc3fb3b7380a3ae27bf3c7a9231c85aaba9c4e65097ee94ae0eb5f9a98
User & Date: js on 2021-04-29 23:46:19
Other Links: manifest | tags
Context
2021-04-30
21:09
OFXMLParser: Make state enum private check-in: 3e5e97315c user: js tags: trunk
2021-04-29
23:46
ofhttp: Make GCC 5.3 happy again check-in: a50ae2cc3f user: js tags: trunk
23:42
Add OFFileTypeUnknown check-in: a7157045f1 user: js tags: trunk
Changes

Modified utils/ofhttp/ProgressBar.m from [5cde87eb26] to [55b889a4e0].

21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#import "OFStdIOStream.h"
#import "OFTimer.h"
#import "OFLocale.h"

#import "ProgressBar.h"

static const float oneKibibyte = 1024;
static const float oneMebibyte = 1024 * oneKibibyte;
static const float oneGibibyte = 1024 * oneMebibyte;

static const OFTimeInterval updateInterval = 0.1;

#ifndef HAVE_TRUNCF
# define truncf(x) trunc(x)
#endif








|
|







21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#import "OFStdIOStream.h"
#import "OFTimer.h"
#import "OFLocale.h"

#import "ProgressBar.h"

static const float oneKibibyte = 1024;
static const float oneMebibyte = 1024 * 1024;
static const float oneGibibyte = 1024 * 1024 * 1024;

static const OFTimeInterval updateInterval = 0.1;

#ifndef HAVE_TRUNCF
# define truncf(x) trunc(x)
#endif