Giter Club home page Giter Club logo

Comments (7)

GoogleCodeExporter avatar GoogleCodeExporter commented on July 2, 2024
Hi, could you check the latest revision and update your comment ? 

The code is now more complete

#ifndef __cplusplus
#if defined(HAVE_STDBOOL_H)
/*
The C language implementation does correctly provide the standard header
file "stdbool.h".
 */
#include <stdbool.h>
#else
/*
The C language implementation does not provide the standard header file
"stdbool.h" as required by ISO/IEC 9899:1999.  Try to compensate for this
braindamage below.
*/
#if !defined(bool)
#define bool    int
#endif
#if !defined(true)
#define true    1
#endif
#if !defined(false)
#define false   0
#endif
#endif
#endif /* __cplusplus */

Original comment by [email protected] on 8 Apr 2010 at 6:21

  • Changed state: Started

from openjpeg.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 2, 2024
i dont think that makes any difference to my original report.  openjpeg.h still
requires someone to either manually include stdbool.h first or manually define
HAVE_STDBOOL_H before including openjpeg.h.  neither of these are generally 
accepted
practices wrt library behavior and makes testing for header/library existence in
standard build systems (like autotools) painful.

Original comment by [email protected] on 9 Apr 2010 at 2:07

from openjpeg.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 2, 2024
Hi, 

Could you suggest a patch to correct this issue ?

Original comment by [email protected] on 26 Apr 2010 at 7:37

from openjpeg.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 2, 2024
What are the platforms that don't have stdbool.h?

Original comment by [email protected] on 15 Nov 2010 at 11:32

from openjpeg.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 2, 2024
This patch fixes the issue when using cmake. I didn't do a version for 
autotools, because Gentoo uses the cmake build system, but vapier's suggestion 
should work fine. 
Hope this helps.

Original comment by [email protected] on 10 May 2011 at 5:54

Attachments:

from openjpeg.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 2, 2024
Hi,

Thanks for the patch. Eventually, we have opted for a more "radical" solution: 
define a new type opj_bool, and two constants OPJ_FALSE and OPJ_TRUE. See r778 
for more details.

Comments welcome.

Cheers,

Antonin

Original comment by antonin on 18 May 2011 at 11:07

from openjpeg.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 2, 2024

Original comment by antonin on 26 May 2011 at 8:53

  • Changed state: Fixed

from openjpeg.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.