Skip to content

[BUG] "#if defined(HAVE_CONFIG_H)" not interpreted #21

Description

@drok

Describe the bug

This code fragment is not interpreted correctly (ie, vscode is not aware that HAVE_CONFIG_H is defined). As a result, the deflateBound definition appears active even though HAVE_DECL_DEFLATEBOUND is set to 1 in build-config.h

#if defined(HAVE_CONFIG_H)
#include "build-config.h"
#endif

#if !HAVE_DECL_DEFLATEBOUND
#define deflateBound(c,s)  ((s) + (((s) + 7) >> 3) + (((s) + 63) >> 6) + 11)
#endif

Steps to reproduce the behavior:

AC_CHECK_DECLS([deflateBound],,,[[#include <zlib.h>]])

The "define deflateBound" line should be dimmer (not compiled) because zlib does implement the function, and HAVE_DECL_DEFLATEBOUND is set to 1 in build-config.h

Screenshots

Image

Where does the extension run?

  • OS where VSCode runs: Windows 10
  • OS where the autotools extension runs: 2.71
  • Extension Version: mergesium.autotools 0.3.1/linux-x64

What does the extension log? (OUTPUT pane / "Autotools" channel)

Paste here any relevant log output.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions