You are viewing a plain text version of this content. The canonical link for it is here.
Posted to proton@qpid.apache.org by "Andrew Stitcher (JIRA)" <ji...@apache.org> on 2014/04/04 16:38:20 UTC

[jira] [Commented] (PROTON-552) Examples fail to build on windows

    [ https://issues.apache.org/jira/browse/PROTON-552?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13960008#comment-13960008 ] 

Andrew Stitcher commented on PROTON-552:
----------------------------------------

The Visual Studio C compiler before VS2013 didn't support any C99, supporting only C89.

This caused 2 problems here:
1. The type bool (and true/false) aren't defined and they are used in the headers files, so we need a safe way to define them for C89 in the headers even if we actually compile the library as C++ under VS.

2. The send.c/recv.c examples actually use C99 to declare variables in the middle of a code block, so they need to be changed to be "pure" C89.

> Examples fail to build on windows
> ---------------------------------
>
>                 Key: PROTON-552
>                 URL: https://issues.apache.org/jira/browse/PROTON-552
>             Project: Qpid Proton
>          Issue Type: Bug
>            Reporter: Rafael H. Schloming
>            Assignee: Andrew Stitcher
>




--
This message was sent by Atlassian JIRA
(v6.2#6252)