HFST - Helsinki Finite-State Transducer Technology API  version 3.7.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
FormatSpecifiers.h
1 // This program is free software: you can redistribute it and/or modify
2 // it under the terms of the GNU General Public License as published by
3 // the Free Software Foundation, version 3 of the License.
4 //
5 // This program is distributed in the hope that it will be useful,
6 // but WITHOUT ANY WARRANTY; without even the implied warranty of
7 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
8 // GNU General Public License for more details.
9 //
10 // You should have received a copy of the GNU General Public License
11 // along with this program. If not, see <http://www.gnu.org/licenses/>.
12 
13 #ifndef _FORMAT_SPECIFIERS_H_
14 #define _FORMAT_SPECIFIERS_H_
15 
16 #ifdef WINDOWS
17  #define SIZE_T_SPECIFIER "%Iu"
18  #define SSIZE_T_SPECIFIER "%Id"
19  #define PTRDIFF_T_SPECIFIER "%Id"
20  #define LONG_LONG_SPECIFIER "%I64d"
21 #else
22  #define SIZE_T_SPECIFIER "%zu"
23  #define SSIZE_T_SPECIFIER "%zd"
24  #define PTRDIFF_T_SPECIFIER "%zd"
25  #define LONG_LONG_SPECIFIER "%lld"
26 #endif
27 
28 #endif