Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ssize_t is not present in Visual Studio #159

Open
natale-p opened this issue May 19, 2017 · 1 comment
Open

ssize_t is not present in Visual Studio #159

natale-p opened this issue May 19, 2017 · 1 comment

Comments

@natale-p
Copy link

ssize_t is a posix extension, so I'm having problems in compiling the files under VS:

ASN1\ber_tlv_length.h(12) : error C2146: syntax error : missing ';' before identifier 'ber_tlv_len_t'

The solution is the following:

#if defined(_MSC_VER)
#include <BaseTsd.h>
typedef SSIZE_T ssize_t;
#endif

before in each file which uses ssize_t.

@vlm
Copy link
Owner

vlm commented Jun 28, 2017

Can't verify even if I fixed it (no MSVC compiler). A patch to asn_system.h would be appreaciated.

jpivarski added a commit to scikit-hep/awkward that referenced this issue Aug 19, 2019
jpivarski added a commit to scikit-hep/awkward that referenced this issue Aug 22, 2019
…s trying to get the Windows compilation to work (because of ssize_t on 32-bit).

Basic definition of an Index class.

Explicitly set C++ standard.

Define ssize_t for Windows.

Try adding a using std::tr1 statement for Windows.

Too many builds! Don't do an extra one just because it's a PR.

Try fix from vlm/asn1c#159 (comment)

[skip ci] save work

Try to define ssize_t on Windows again.

Try using a typedef and an external util.h.

Nope, back to a #define.

Try full matrix again.

From https://docs.microsoft.com/en-us/azure/devops/release-notes/2019/sprint-146-update#avoid-triggering-multiple-ci-builds-for-pull-requests

Give up trying to trigger on PRs at all.
attina pushed a commit to attina/asn1c that referenced this issue Dec 26, 2023
jer: UTF-8 escape control chars and handle escaped unicodes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants