2024-08-30 02:35:17 +00:00
|
|
|
// ISC License
|
|
|
|
//
|
|
|
|
// Copyright (c) 2024 Stephen Seo
|
|
|
|
//
|
|
|
|
// Permission to use, copy, modify, and/or distribute this software for any
|
|
|
|
// purpose with or without fee is hereby granted, provided that the above
|
|
|
|
// copyright notice and this permission notice appear in all copies.
|
|
|
|
//
|
|
|
|
// THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
|
|
// REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
|
|
// AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
|
|
// INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
|
|
// LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
|
|
// OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
|
|
// PERFORMANCE OF THIS SOFTWARE.
|
|
|
|
//
|
|
|
|
// `platforms.h` is the header that determines what platform this program is
|
|
|
|
// compiled for.
|
2024-06-29 07:52:17 +00:00
|
|
|
|
2024-07-03 10:54:44 +00:00
|
|
|
#ifndef SEODISPARATE_COM_SIMPLE_ARCHIVER_PLATFORMS_H_
|
|
|
|
#define SEODISPARATE_COM_SIMPLE_ARCHIVER_PLATFORMS_H_
|
|
|
|
|
2024-06-29 07:52:17 +00:00
|
|
|
// Determine platform macros
|
|
|
|
#define SIMPLE_ARCHIVER_PLATFORM_WINDOWS 1
|
|
|
|
#define SIMPLE_ARCHIVER_PLATFORM_MAC 2
|
|
|
|
#define SIMPLE_ARCHIVER_PLATFORM_LINUX 3
|
|
|
|
#define SIMPLE_ARCHIVER_PLATFORM_COSMOPOLITAN 4
|
|
|
|
#define SIMPLE_ARCHIVER_PLATFORM_UNKNOWN 0
|
|
|
|
|
|
|
|
#if defined __COSMOPOLITAN__
|
2024-06-30 06:32:17 +00:00
|
|
|
#define SIMPLE_ARCHIVER_PLATFORM SIMPLE_ARCHIVER_PLATFORM_COSMOPOLITAN
|
2024-06-29 07:52:17 +00:00
|
|
|
#elif defined _WIN32
|
2024-06-30 06:32:17 +00:00
|
|
|
#define SIMPLE_ARCHIVER_PLATFORM SIMPLE_ARCHIVER_PLATFORM_WINDOWS
|
2024-06-29 07:52:17 +00:00
|
|
|
#elif defined __APPLE__
|
2024-06-30 06:32:17 +00:00
|
|
|
#define SIMPLE_ARCHIVER_PLATFORM SIMPLE_ARCHIVER_PLATFORM_MAC
|
2024-06-29 07:52:17 +00:00
|
|
|
#elif defined __linux__
|
2024-06-30 06:32:17 +00:00
|
|
|
#define SIMPLE_ARCHIVER_PLATFORM SIMPLE_ARCHIVER_PLATFORM_LINUX
|
2024-06-29 07:52:17 +00:00
|
|
|
#else
|
2024-06-30 06:32:17 +00:00
|
|
|
#define SIMPLE_ARCHIVER_PLATFORM SIMPLE_ARCHIVER_PLATFORM_UNKNOWN
|
2024-06-29 07:52:17 +00:00
|
|
|
#endif
|
2024-07-03 10:54:44 +00:00
|
|
|
|
|
|
|
#endif
|