Skip to content

Macos system cannot use sciter-api branch #318

@2vl

Description

@2vl

Macos system cannot use sciter-api branch

error:

#github.com/sciter-sdk/go-sciter
../../go/pkg/mod/github.com/sciter-sdk/go-sciter@v0.5.1-0.20210426171118-f5212dff3ad8/sciter.go:76:23: could not determine kind of name for C.BOOL
cgo:
clang errors for preamble:
../../go/pkg/mod/github.com/sciter-sdk/go-sciter@v0.5.1-0.20210426171118-f5212dff3ad8/sciter.go:14:8: error: unknown type name 'BOOL'; did you mean 'SBOOL'?
extern BOOL SC_CALLBACK SciterElementCallback_cgo(HELEMENT he, LPVOID param);
^~~~
SBOOL
../../go/pkg/mod/github.com/sciter-sdk/go-sciter@v0.5.1-0.20210426171118-f5212dff3ad8/include/sciter-x-types.h:52:15: note: 'SBOOL' declared here
typedef int SBOOL;
^
../../go/pkg/mod/github.com/sciter-sdk/go-sciter@v0.5.1-0.20210426171118-f5212dff3ad8/sciter.go:18:8: error: unknown type name 'BOOL'; did you mean 'SBOOL'?
extern BOOL SC_CALLBACK ElementEventProc_cgo(LPVOID tag, HELEMENT he, UINT evtg, LPVOID prms );
^~~~
SBOOL
../../go/pkg/mod/github.com/sciter-sdk/go-sciter@v0.5.1-0.20210426171118-f5212dff3ad8/include/sciter-x-types.h:52:15: note: 'SBOOL' declared here
typedef int SBOOL;
^
../../go/pkg/mod/github.com/sciter-sdk/go-sciter@v0.5.1-0.20210426171118-f5212dff3ad8/sciter.go:26:8: error: unknown type name 'BOOL'; did you mean 'SBOOL'?
extern BOOL SC_CALLBACK KeyValueCallback_cgo(LPVOID param, const VALUE* pkey, const VALUE* pval );
^~~~
SBOOL
../../go/pkg/mod/github.com/sciter-sdk/go-sciter@v0.5.1-0.20210426171118-f5212dff3ad8/include/sciter-x-types.h:52:15: note: 'SBOOL' declared here
typedef int SBOOL;
^
../../go/pkg/mod/github.com/sciter-sdk/go-sciter@v0.5.1-0.20210426171118-f5212dff3ad8/sciter.go:32:8: error: unknown type name 'BOOL'; did you mean 'SBOOL'?
extern BOOL SCAPI SciterGetArchiveItem (HSARCHIVE harc, LPCWSTR path, LPCBYTE* pdata, UINT* pdataLength);
^~~~
SBOOL
../../go/pkg/mod/github.com/sciter-sdk/go-sciter@v0.5.1-0.20210426171118-f5212dff3ad8/include/sciter-x-types.h:52:15: note: 'SBOOL' declared here
typedef int SBOOL;
^
../../go/pkg/mod/github.com/sciter-sdk/go-sciter@v0.5.1-0.20210426171118-f5212dff3ad8/sciter.go:34:8: error: unknown type name 'BOOL'; did you mean 'SBOOL'?
extern BOOL SCAPI SciterCloseArchive (HSARCHIVE harc);
^~~~
SBOOL
../../go/pkg/mod/github.com/sciter-sdk/go-sciter@v0.5.1-0.20210426171118-f5212dff3ad8/include/sciter-x-types.h:52:15: note: 'SBOOL' declared here
typedef int SBOOL;
^
5 errors generated.

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