diff options
author | Salvador Cuñat <salvador.cunat@gmail.com> | 2017-05-20 09:41:55 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2017-06-11 13:50:59 -0700 |
commit | 95ee57915027b41040e57fdeac8cd8e0b6be306d (patch) | |
tree | 0445cbafe34292d1a504d2c0919b7825d8a92597 /subsurface-desktop-main.cpp | |
parent | b47d18b45ac135ab9c7c0152fd9713d7aee2b407 (diff) | |
download | subsurface-95ee57915027b41040e57fdeac8cd8e0b6be306d.tar.gz |
smtk-import: portability: rework non portable funcs
For different reasons some used functions aren't portable or simply are
not included in mingw. This includes index, rindex, strptime, and
timegm.
A workaround for this is needed, if we want to build for windows using
mingw based mxe environment. This patch does:
- drops index and rindex in favor of strchr and strrchr
- substitute strptime with a sscanf parsing
- emulate timegm with a private func smtk_timegm()
- remove definitions needed by strptime
Signed-off-by: Salvador Cuñat <salvador.cunat@gmail.com>
Diffstat (limited to 'subsurface-desktop-main.cpp')
0 files changed, 0 insertions, 0 deletions