/* Copyright (C) 2015 Povilas Kanapickas This file is part of cppreference-doc This work is licensed under the Creative Commons Attribution-ShareAlike 3.0 Unported License. To view a copy of this license, visit http://creativecommons.org/licenses/by-sa/3.0/ or send a letter to Creative Commons, 444 Castro Street, Suite 900, Mountain View, California, 94041, USA. Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.3 or any later version published by the Free Software Foundation; with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. */ #ifndef CPPREFERENCE_CSTDDEF_H #define CPPREFERENCE_CSTDDEF_H namespace std { #ifndef offsetof #define offsetof(type,member_designator) 0 // SIMPLIFIED #endif #ifndef NULL #define NULL #endif namespace std { // dummy impl typedef long long ptrdiff_t; typedef long long size_t; typedef long long max_align_t; typedef void* nullptr_t; } // namespace std #endif // CPPREFERENCE_CSTDDEF_H