inexorgame-obsolete / deprecated-cube-engine-inexor

UNMAINTAINED: Please have a look at the vulkan-renderer
https://inexor.org
zlib License
11 stars 1 forks source link

Use boost UUIDs instead of utils #326

Closed IAmNotHanni closed 8 years ago

IAmNotHanni commented 8 years ago

There is a problem in this branch: hanni/NewVisualScripting. The following code: utils/uuid.cpp, line 36:

rc = clock_gettime(CLOCK_REALTIME, &tp);

does not work on Win32. It seems to work on Linux based systems only!

error message from Microsoft Visual Studio 2015

Instead of using util/uuid.hpp we should use boost UUID

IAmNotHanni commented 8 years ago

A possible fix is this (Thanks to C++11) Just replace clock_gettime with timespec_get:

rc = timespec_get(&tp, TIME_UTC);

IAmNotHanni commented 8 years ago

https://github.com/inexor-game/code/commit/6fbbf645aad1b9775d1467572ffcf6a6ee48d150 fixed it.

Croydon commented 8 years ago

Note: This issue was about a feature branch not master.