Type uint64_tcannot be defined on 32-bit platforms, but type code
uint64_t
int main() { uint64_t i = 0; }
may cause type compilation errors incomplete type.
incomplete type
Is there a preprocessor directive to check for availability uint64_t? Any other way to check if a type is set?
I believe a reasonable approach is to check if a related macro is installed UINT64_MAX, for example.
UINT64_MAX
#include <cstdint> /* don't forget to include */ ... #ifdef UINT64_MAX ... #endif
AFAIK , . C99, 7.18.2 ( ++ , ):
- <stdint.h>. 7.18.1.
<stdint.h>
Source: https://habr.com/ru/post/1548172/More articles:Do not delay the calls of ajax - angularjsLaravel SMTP Email - php0x7002: расширение LDAP не загружено в ZF2 - zend-framework2"Недопустимые% -кодирование" и "неверная последовательность байтов в UTF-8" значительно увеличиваются - securityRstudio brilliant selection string in DataTables? - rJQuery date formatting time - javascriptscrollTop does not work with -webkit-overflow-scrolling: touch - javascriptHow to create this complex database query in CakePHP 3.0? - cakephpEquivalent to "hold" and "release" in hammer.js 2.0 - javascriptPython and Torch7 (Lua) interaction through a shared library - cAll Articles