Closed xxMattewxx closed 1 year ago
Code wouldn't compile for me otherwise. I have tried both WSL2 Ubuntu and NVIDIA's OpenCL docker images, the two failed compile with "error: ‘htonll’ was not declared in this scope; did you mean ‘htonl’?".
might be a good idea to wrap the macro in an ifndef so as to not redefine it if it already exists elsewhere, like so:
ifndef
#ifndef htonll #define htonll(x) ((((uint64_t)htonl(x)) << 32) + htonl((x) >> 32)) #endif
Code wouldn't compile for me otherwise. I have tried both WSL2 Ubuntu and NVIDIA's OpenCL docker images, the two failed compile with "error: ‘htonll’ was not declared in this scope; did you mean ‘htonl’?".