Skip to content

function name and macro was conflict #19

@Hojun-Cho

Description

@Hojun-Cho
  • error
#define csp_without_prefix

#include <libcsp/csp.h>
#include <unistd.h>
In file included from /usr/local/include/libcsp/csp.h:28,
                 from sum.c:18:
/usr/include/unistd.h:1005:13: error: expected identifier or ‘(’ before ‘do’
 1005 | extern void sync (void) __THROW;
      |             ^~~~
/usr/include/unistd.h:1005:13: error: expected identifier or ‘(’ before ‘while’
 1005 | extern void sync (void) __THROW;
  • But if you reverse the order, it works.
#define csp_without_prefix

#include <unistd.h>
#include <libcsp/csp.h>

How can solve this problem? Am i use "csp_async" and "csp_sync" not "sync" and "async".

Thankyou for reading this issue

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions