SDK version ifdef


I have a simple question about how to get if I have "old" SDK or "new" SDK.
I'm using version and trying to upgrade to
And I have old source code, which is comitted to SVN and it doesn't compile if I replace SDK.
I want to add some ifdef and make it compile with same source on any SDK version.
I checked SDK headers and found nothing useful. Is there something to detect SDK version via ifdef?


  • Hi @User228.

    No, I am afraid that there is no publicly available version define that you can check.
  • Hi @User228.

    Starting with, which will become available later this month, you can use the defines from Photon-cpp/inc/Version.h in your #ifdefs
Sign In or Register to comment.