Support building in Microsoft Embedded Visual C++ 3.0 #89

Open
wants to merge 3 commits into
from

Conversation

Projects
None yet
3 participants

EBNull commented Sep 10, 2012

I'll bet this is a somewhat esoteric feature, but I needed a JSON library for working on a PocketPC 2002 device. That device runs Windows CE 3.0, which can only be targeted with evc 3.0.

Porting Jansson to work was surprisingly simple, and here's the code to do that.

I don't expect you to merge this into master, or even update it, but it would be nice if you kept the branch in your repository.

Thanks!

Owner

akheron commented Sep 13, 2012

Nice. Seems that porting was very easy.

The support for systems that don't have errno could actually be useful for other users, too. I bet there are platforms out there that don't support errno correctly.

EBNull commented Sep 13, 2012

If you do accept the patch, note that JSON_HAVE_ERRNO isn't defined anywhere in the configure files, as evc needs it not defined. To maintain original behavior, you'll need to add it to the configure script.

Owner

akheron commented Sep 14, 2012

Yeah. I doubt it can be tested using the configure script, because systems without errno are most probably unable to run the configure script either. The best would be to just add /* #define JSON_HAVE_ERRNO 1 */ in jansson_config.h.in and to document it appropriately.

marcosm commented Oct 1, 2012

Hi, I'm trying to compile the solution through EVC 3.0 and I have many compilation errors, as can't find assert.h which doesn't exist in EVC 3.0 libraries,, offsetoff undefined, and others... Do I have to do something else at the solution ? Thanks in advance...

marcosm commented Oct 1, 2012

Hi, I'm trying to compile the solution through EVC 3.0 and I have many compilation errors, as can't find assert.h which doesn't exist in EVC 3.0 libraries,, offsetoff undefined, and others... Do I have to do something else at the solution ? Thanks in advance...

marcosm commented Oct 1, 2012

Hi, I'm trying to compile the solution through EVC 3.0 and I have many compilation errors, as can't find assert.h which doesn't exist in EVC 3.0 libraries,, offsetoff undefined, and others... Do I have to do something else at the solution ? Thanks in advance...

marcosm commented Oct 1, 2012

Hi, I'm trying to compile the solution through EVC 3.0 and I have many compilation errors, as can't find assert.h which doesn't exist in EVC 3.0 libraries,, offsetoff undefined, and others... Do I have to do something else at the solution ? Thanks in advance...

EBNull commented Oct 1, 2012

After thinking about if for a bit, I realized I has one nonstandard setup in my environment - I replaced evc's stdlib with STLPort. I assume that gave me assert.h and perhaps some other things.

STLPort officially supports evc 3.0, and using it is somewhat straightforward. I guess the patch I provided has it as a prerequisite.

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