cscg24-guacamole

CSCG 2024 Challenge 'Guacamole Mashup'
git clone https://git.sinitax.com/sinitax/cscg24-guacamole
Log | Files | Refs | sfeed.txt

tchar.h (1594B)


      1/**
      2 * WinPR: Windows Portable Runtime
      3 * TCHAR
      4 *
      5 * Copyright 2012 Marc-Andre Moreau <marcandre.moreau@gmail.com>
      6 *
      7 * Licensed under the Apache License, Version 2.0 (the "License");
      8 * you may not use this file except in compliance with the License.
      9 * You may obtain a copy of the License at
     10 *
     11 *     http://www.apache.org/licenses/LICENSE-2.0
     12 *
     13 * Unless required by applicable law or agreed to in writing, software
     14 * distributed under the License is distributed on an "AS IS" BASIS,
     15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     16 * See the License for the specific language governing permissions and
     17 * limitations under the License.
     18 */
     19
     20#ifndef WINPR_TCHAR_H
     21#define WINPR_TCHAR_H
     22
     23#include <winpr/crt.h>
     24#include <winpr/wtypes.h>
     25
     26#ifdef _WIN32
     27
     28#include <tchar.h>
     29
     30#else
     31
     32#ifdef UNICODE
     33typedef WCHAR TCHAR;
     34#else
     35typedef CHAR TCHAR;
     36#endif
     37
     38#ifdef UNICODE
     39#define _tprintf wprintf
     40#define _sntprintf snwprintf
     41#define _tcslen _wcslen
     42#define _tcsdup _wcsdup
     43#define _tcscmp wcscmp
     44#define _tcsncmp wcsncmp
     45#define _tcscpy wcscpy
     46#define _tcscat wcscat
     47#define _tcschr wcschr
     48#define _tcsrchr wcsrchr
     49#define _tcsstr wcsstr
     50#define _stprintf_s swprintf_s
     51#define _tcsnccmp wcsncmp
     52#else
     53#define _tprintf printf
     54#define _sntprintf snprintf
     55#define _tcslen strlen
     56#define _tcsdup _strdup
     57#define _tcscmp strcmp
     58#define _tcsncmp strncmp
     59#define _tcscpy strcpy
     60#define _tcscat strcat
     61#define _tcschr strchr
     62#define _tcsrchr strrchr
     63#define _tcsstr strstr
     64#define _stprintf_s sprintf_s
     65#define _tcsnccmp strncmp
     66#endif
     67
     68#endif
     69
     70#endif /* WINPR_TCHAR_H */