Version

I couldn’t find a #define that specifies the version of Photon header files.
I’m compiling a 1.12 application on 1.14 but some prototypes have changed in
1.14,
but I want the source to compile in both. I looked and looked again but
to no avail.

\

  • Mario

Mario Charest <mcharest@void_zinformatic.com> wrote:


I couldn’t find a #define that specifies the version of Photon header files.
I’m compiling a 1.12 application on 1.14 but some prototypes have changed in
1.14,
but I want the source to compile in both. I looked and looked again but
to no avail.

Ph_LIB_VERSION

\

Wojtek Lerch (wojtek@qnx.com) QNX Software Systems Ltd.

“Wojtek Lerch” <wojtek@qnx.com> wrote in message
news:913b42$lgd$1@nntp.qnx.com

Mario Charest <mcharest@void_zinformatic.com> wrote:


I couldn’t find a #define that specifies the version of Photon header
files.
I’m compiling a 1.12 application on 1.14 but some prototypes have
changed in
1.14,
but I want the source to compile in both. I looked and looked again but
to no avail.

Ph_LIB_VERSION

I couldn’t find that symbol in 1.12. Should I assume that if it doesn’t
exists that it’s 1.12? What if it’s 1.10?


Wojtek Lerch (> wojtek@qnx.com> ) QNX Software Systems Ltd.

Mario Charest <mcharest@void_zinformatic.com> wrote:

“Wojtek Lerch” <> wojtek@qnx.com> > wrote in message
news:913b42$lgd$> 1@nntp.qnx.com> …
Mario Charest <mcharest@void_zinformatic.com> wrote:


I couldn’t find a #define that specifies the version of Photon header
files.
I’m compiling a 1.12 application on 1.14 but some prototypes have
changed in
1.14,
but I want the source to compile in both. I looked and looked again but
to no avail.

Ph_LIB_VERSION

I couldn’t find that symbol in 1.12. Should I assume that if it doesn’t
exists that it’s 1.12? What if it’s 1.10?

This macro was introduced in Photon 1.13. If you need to distinguish
1.12 from even older versions, I guess you’ll need to run diff and find
some macros that were changed or added between those versions. I don’t
have anything more specific to give you, sorry.


Wojtek Lerch (wojtek@qnx.com) QNX Software Systems Ltd.

“Wojtek Lerch” <wojtek@qnx.com> wrote in message
news:913bui$m54$1@nntp.qnx.com

Mario Charest <mcharest@void_zinformatic.com> wrote:

“Wojtek Lerch” <> wojtek@qnx.com> > wrote in message
news:913b42$lgd$> 1@nntp.qnx.com> …
Mario Charest <mcharest@void_zinformatic.com> wrote:


I couldn’t find a #define that specifies the version of Photon header
files.
I’m compiling a 1.12 application on 1.14 but some prototypes have
changed in
1.14,
but I want the source to compile in both. I looked and looked again
but
to no avail.

Ph_LIB_VERSION

I couldn’t find that symbol in 1.12. Should I assume that if it doesn’t
exists that it’s 1.12? What if it’s 1.10?

This macro was introduced in Photon 1.13. If you need to distinguish
1.12 from even older versions, I guess you’ll need to run diff and find
some macros that were changed or added between those versions. I don’t
have anything more specific to give you, sorry.

No problem, I wanted to make sure I didn’t miss anything. Thanks Wojtek.


Wojtek Lerch (> wojtek@qnx.com> ) QNX Software Systems Ltd.