×

Discussion Board

Results 1 to 6 of 6
  1. #1
    Registered User
    Join Date
    Mar 2010
    Posts
    4

    Question Symbian^3 Variation Code

    Hi,
    I would like to know what is the variation macro for Symbian^3 SDK.
    My code supports multiple S60 platform and I use macros like __SERIES60_3X__ and __S60_50__ to differentiate between the platforms. Now I try to port my code to Symbian^3 but I couldn't find anywhere the macro that I should use to differentiate between the Symbian^3 code, the S60 5th edition code and the S60 3ed edition code.

    I'll appreciate you help!
    Gil Osher

  2. #2
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,684

    Re: Symbian^3 Variation Code

    As a quick approach you could use #else
    Code:
    #if defined(__SERIES60_3X__)
    #elif defined(__S60_50__)
    #else
    #endif
    Otherwise you can check if epoc32\tools\e32plat.pm contains something. At least that is the place where S60 3rd edition SDK-s define platform marcros
    Quote Originally Posted by e32plat.pm, S60 3rd FP1
    #Added SERIES60 macros
    my @EpocMacros=('__SYMBIAN32__','__SERIES60_31__','__SERIES60_3X__');

  3. #3
    Registered User
    Join Date
    Mar 2010
    Posts
    4

    Re: Symbian^3 Variation Code

    I'm already using #else for Symbian 0.8 cases.
    And the file epoc32\tools\e32plat.pm contains only:
    Code:
    my @EpocMacros=('__SYMBIAN32__');
    Is there any other place that this macro could be defined?

  4. #4
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,684

    Re: Symbian^3 Variation Code

    There can be many places. However until now this has been the place. This list may improve while the Symbian^3 SDK gets matured, it is only v0.8 after all. Since the SDK itself comes from Forum Nokia, it may be a good idea to place this request in the Feedback boards (the first group you see if you click back to "Home | Community | Discussion Boards" above).

  5. #5
    Nokia Developer Moderator
    Join Date
    Sep 2004
    Location
    Tampere, Finland
    Posts
    11,359

    Re: Symbian^3 Variation Code

    Symbian Foundation opposes the idea of using release specific macros ( see http://developer.symbian.org/forum/s...ead.php?t=4557 ) so I guess the issue is still open for now. At least the legacy macros should be still provided so that existing code which makes use of such macros can be still compiled without too much trouble.

    As of now you should try to identify a feature specific macro you can use from \epoc32\variant\symbian_os.h If you cannot find a feature specific one, you can a) open a bug report at the Symbian Foundation (recommended) and b) use the SYMBIAN_ENABLE_SPLIT_HEADERS which was introduced after Symbian^1 to differentiate between S60 5.0 and Symbian^3
    -- Lucian

    If you are not yet a DVLUP member it is time to correct that mistake :) Click here to join: http://www.dvlup.com/lucian/Invite

  6. #6
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,684

    Re: Symbian^3 Variation Code

    Stuff in \epoc32\include\variant seems to be platform dependent already (at least I see a symbian_os_v9.2.hrh in a S60 3rd FP1 SDK). Anyway, this "new beginning" approach can be handled via the #else-way, and after that the feature-macros can be used.

Similar Threads

  1. Game speeds variation
    By kai_buki in forum Mobile Java Games
    Replies: 1
    Last Post: 2009-05-14, 10:37
  2. Variation in jar size??
    By vineetbillorey in forum Mobile Java General
    Replies: 11
    Last Post: 2009-05-08, 17:32
  3. Frame length variation for E95
    By bdrubel in forum Symbian Media (Closed)
    Replies: 4
    Last Post: 2008-08-13, 14:29
  4. CAknDoubleTimeStyleListBox variation
    By aoikonom in forum Symbian User Interface
    Replies: 0
    Last Post: 2008-02-04, 11:25
  5. wide variation in emulator correctness and performance
    By jgreif in forum Tools and SDK Feedback (Closed)
    Replies: 0
    Last Post: 2006-12-23, 01:04

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×