Ticket #49449: osx108-no-cxx11.patch
File osx108-no-cxx11.patch, 2.3 KB (added by howarth.at.macports@…, 9 years ago) |
---|
-
layer2/CifMoleculeReader.cpp
2106 2106 } 2107 2107 2108 2108 const char * filename = NULL; 2109 #ifndef _PYMOL_NO_CXX11 2109 2110 auto cif = std::make_shared<cif_file>(filename, st); 2111 #else 2112 cif_file _cif_stack(filename, st); 2113 auto cif = &_cif_stack; 2114 #endif 2110 2115 2111 2116 for (auto it = cif->datablocks.begin(); it != cif->datablocks.end(); ++it) { 2112 2117 ObjectMolecule * obj = ObjectMoleculeReadCifData(G, it->second, discrete); … … 2117 2122 continue; 2118 2123 } 2119 2124 2120 #if ndef _PYMOL_NOPY2125 #if !defined(_PYMOL_NOPY) && !defined(_PYMOL_NO_CXX11) 2121 2126 // we only provide access from the Python API so far 2122 2127 if (SettingGetGlobal_b(G, cSetting_cif_keepinmemory)) { 2123 2128 obj->m_cifdata = it->second; -
layer2/ObjectMolecule.cpp
12561 12561 VLAFreeP(I->DiscreteAtmToIdx); 12562 12562 VLAFreeP(I->DiscreteCSet); 12563 12563 VLAFreeP(I->CSet); 12564 #ifndef _PYMOL_NO_CXX11 12564 12565 I->m_ciffile.reset(); // free data 12566 #endif 12565 12567 12566 12568 { 12567 12569 int nAtom = I->NAtom; -
layer2/ObjectMolecule.h
86 86 int RepVisCache; /* for transient storage during updates */ 87 87 88 88 // for reporting available assembly ids after mmCIF loading - SUBJECT TO CHANGE 89 #ifndef _PYMOL_NO_CXX11 89 90 std::shared_ptr<cif_file> m_ciffile; 91 #endif 90 92 const cif_data * m_cifdata; 91 93 92 94 // methods -
setup.py
213 213 ("NO_MMLIBS",None), 214 214 ] 215 215 216 if sys.platform == 'darwin': 217 import platform 218 if int(platform.mac_ver()[0].split('.')[1]) < 9: 219 # OS X <= 10.8, will still use some C++11 features 220 # like the "auto" keyword, but excludes features which 221 # depend on the C++11 std library. 222 def_macros += [ 223 ('_PYMOL_NO_CXX11', None), 224 ] 225 216 226 try: 217 227 import numpy 218 228 inc_dirs += [