Skip to content

Commit dcde4ca

Browse files
fix compiling on win32
1 parent 89a245a commit dcde4ca

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/connectionstartframe.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
/**
1212
* Dependencies
1313
*/
14-
#ifndef _WIN32
14+
#if !defined(_WIN32) && !defined(_WIN64)
1515
#include "programname.h"
1616
#include "platformname.h"
1717
#endif
@@ -225,7 +225,7 @@ class ConnectionStartFrame : public ConnectionFrame
225225
if (!properties.contains("information")) properties["information"] = "https://github.com/CopernicaMarketingSoftware/AMQP-CPP";
226226
if (!properties.contains("capabilities")) properties["capabilities"] = capabilities;
227227

228-
#ifdef _WIN32
228+
#if defined(_WIN32) || defined(_WIN64)
229229
// i don't know that much about win32, so let's use hardcoded string
230230
if (!properties.contains("product")) properties["product"] = "application based on AMQP-CPP";
231231
if (!properties.contains("platform")) properties["platform"] = "windows";

src/programname.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@
1515
/**
1616
* Dependencies
1717
*/
18-
#include <unistd.h>
1918
#include <limits.h>
19+
#include <unistd.h>
2020

2121
/**
2222
* Begin of namespace

0 commit comments

Comments
 (0)