mirror of
https://github.com/KhronosGroup/OpenCL-CTS.git
synced 2026-03-19 06:09:01 +00:00
Rename Version major and minor getters (#2451)
Both these functions cause a conflict when using an old version of the GNU C Library with the header file sys/sysmacros.h where major() and minor() are defined as a macro
This commit is contained in:
@@ -28,8 +28,8 @@ public:
|
||||
Version(): m_major(0), m_minor(0) {}
|
||||
|
||||
Version(cl_uint major, cl_uint minor): m_major(major), m_minor(minor) {}
|
||||
int major() const { return m_major; }
|
||||
int minor() const { return m_minor; }
|
||||
int get_major() const { return m_major; }
|
||||
int get_minor() const { return m_minor; }
|
||||
bool operator>(const Version &rhs) const
|
||||
{
|
||||
return to_uint() > rhs.to_uint();
|
||||
|
||||
Reference in New Issue
Block a user