[Kde-games-devel] Review Request 127517: Include <time.h>.

Tobias Berner tcberner at gmail.com
Mon Mar 28 22:44:46 UTC 2016


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://git.reviewboard.kde.org/r/127517/
-----------------------------------------------------------

(Updated März 29, 2016, 12:44 vorm.)


Review request for KDE Games, Raphael Kubo da Costa and Frederik Schwarzer.


Changes
-------

Use `ctime` and `std::time()`.


Repository: knavalbattle


Description
-------

This fixes a build error on FreeBSD:

        /wrkdirs/usr/ports/games/knavalbattle/work/knavalbattle-16.03.80/src/ai/dummyai.cpp:16:12: error: use of undeclared identifier 'time'
            qsrand(time(0));


Diffs (updated)
-----

  src/ai/dummyai.cpp adf4094 
  src/ai/smartai.cpp 1c702a5 

Diff: https://git.reviewboard.kde.org/r/127517/diff/


Testing
-------

Built locally.


Thanks,

Tobias Berner

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-games-devel/attachments/20160328/45be06e2/attachment-0001.html>


More information about the kde-games-devel mailing list