fix compiling on win32

This commit is contained in:
Emiel Bruijntjes 2023-04-24 11:06:42 +02:00
parent 89a245a05b
commit dcde4caca4
2 changed files with 3 additions and 3 deletions

View File

@ -11,7 +11,7 @@
/**
* Dependencies
*/
#ifndef _WIN32
#if !defined(_WIN32) && !defined(_WIN64)
#include "programname.h"
#include "platformname.h"
#endif
@ -225,7 +225,7 @@ public:
if (!properties.contains("information")) properties["information"] = "https://github.com/CopernicaMarketingSoftware/AMQP-CPP";
if (!properties.contains("capabilities")) properties["capabilities"] = capabilities;
#ifdef _WIN32
#if defined(_WIN32) || defined(_WIN64)
// i don't know that much about win32, so let's use hardcoded string
if (!properties.contains("product")) properties["product"] = "application based on AMQP-CPP";
if (!properties.contains("platform")) properties["platform"] = "windows";

View File

@ -15,8 +15,8 @@
/**
* Dependencies
*/
#include <unistd.h>
#include <limits.h>
#include <unistd.h>
/**
* Begin of namespace