Changeset 29d76d4 in git for kernel


Ignore:
Timestamp:
Oct 25, 2013, 4:08:36 AM (11 years ago)
Author:
Oleksandr Motsak <motsak@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
1ba7d59dde84d122942e10a85da471cf9da64a00
Parents:
f80aca589d7b6c3ac3ec8c32b27b8130ea38c6f7
git-author:
Oleksandr Motsak <motsak@mathematik.uni-kl.de>2013-10-25 04:08:36+02:00
git-committer:
Oleksandr Motsak <motsak@mathematik.uni-kl.de>2013-10-25 15:09:50+02:00
Message:
Fixed brocken linkage under OSX (char_ptr_bin)
Location:
kernel
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • kernel/misc.cc

    rf80aca5 r29d76d4  
    2525
    2626/* init bins */
    27 
    28 omBin char_ptr_bin = omGetSpecBin(sizeof(char*));
    2927
    3028/*0 implementation*/
  • kernel/structs.h

    rf80aca5 r29d76d4  
    109109#endif
    110110
    111 extern omBin char_ptr_bin;
     111class CGlobals
     112{
     113 public:
     114 static inline const omBin& getCharPtrBin()
     115 {
     116  static omBin _char_ptr_bin = omGetSpecBin(sizeof(char*));
     117  return _char_ptr_bin;
     118 }
     119};
     120
     121#define char_ptr_bin (CGlobals::getCharPtrBin())
     122
    112123
    113124#endif
Note: See TracChangeset for help on using the changeset viewer.