/*
    PIP - Platform Independent Primitives
    Private PIP includes
    Ivan Pelipenko peri4ko@yandex.ru, Andrey Bychkov work.a.b@yandex.ru

    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU Lesser General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU Lesser General Public License for more details.

    You should have received a copy of the GNU Lesser General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef PIINCLUDES_P_H
#define PIINCLUDES_P_H


// clang-format off
#include "picout.h"
#ifdef WINDOWS
#  ifdef _WIN32_WINNT
#	undef _WIN32_WINNT
#	define _WIN32_WINNT 0x0600
#  endif
#  include <stdarg.h>
#  include <windef.h>
#  include <winbase.h>
typedef LONG(NTAPI * PINtQueryTimerResolution)(PULONG, PULONG, PULONG);
typedef LONG(NTAPI * PINtSetTimerResolution)(ULONG, BOOLEAN, PULONG);
#endif
#ifdef CC_GCC
#  include <unistd.h>
#endif
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <iostream>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <string>

#ifdef FREERTOS
#  ifdef ESP_PLATFORM
#	include "freertos/FreeRTOS.h"
#	include "freertos/task.h"
#  endif
#  ifdef ARDUINO_ARCH_STM32
#	include <STM32FreeRTOS.h>
#  endif
#endif
// clang-format on


#endif // PIINCLUDES_P_H
