onryldz / x-superobject

Delphi Cross Platform Rapid JSON
316 stars 117 forks source link

Undeclared identifer "AnsiChar" #12

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
0. This is done using Delphi XE5 update1.
1. Create a FireMonkey Mobile application.
2. Add XSuperObject to "uses".
3. Select Android or iOS as target platform (simulator or device).
4. Try to compile and run the app (maybe add some JSON parsing :)).

What is the expected output? What do you see instead?
- The application would run flawlessly :).

What version of the product are you using? On what operating system?
- The latest revision of xsuperobject and xsuperjson, with which I'm very happy 
:-).
- Delphi XE5 update1.
- iOS simulator and an Android tablet (as the target platform).

Please provide any additional information below.
- XE5 is unable to compile the XSuperJSON.pas unit at line 367. It raises 
"Undecl. Identifer AnsiChar" even though the unit AnsiChar is in is in the uses 
clause.

"  TRouteChars = set of AnsiChar;"

I've just changed AnsiChar to Char, which compiles and untill now didn't 
experience any issues after changing it and it works on iOS sim and Android!

-- Don't know if you accept multiple things in one "Issue", can you add if 
assigned checks to the GetX (GetString,GetInteger ...) to prevent Access 
Violations when a value does not exists and then return '', 0, false etc as 
default values?

Thanks for yesterday's update, now I do not need to rewrite much code, only 
just a few lines :).

Original issue reported on code.google.com by L...@LMeijer.nl on 25 Nov 2013 at 11:36

GoogleCodeExporter commented 9 years ago

Original comment by onryld...@gmail.com on 26 Nov 2013 at 7:11

GoogleCodeExporter commented 9 years ago
This issue was closed by revision r31.

Original comment by onryld...@gmail.com on 27 Nov 2013 at 11:19