]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
0021196: [CEA 456] Integration and merge modification for debian packages
authoreap <eap@opencascade.com>
Tue, 1 Mar 2011 12:41:51 +0000 (12:41 +0000)
committereap <eap@opencascade.com>
Tue, 1 Mar 2011 12:41:51 +0000 (12:41 +0000)
Remove unnecessary extern "C" instances and add one necessary one.
Background: One must not #include mpi.h from within an extern "C" block.
Both mpi.h and hdf5.h are C++-safe, and should be included directly without
extern "C".  For details, see:
http://www.open-mpi.org/community/lists/users/2007/12/4763.php

17 files changed:
src/HDFPersist/HDFOI.hxx
src/HDFPersist/HDFattribute.cc
src/HDFPersist/HDFattribute.hxx
src/HDFPersist/HDFcontainerObject.cc
src/HDFPersist/HDFcontainerObject.hxx
src/HDFPersist/HDFconvert.hxx
src/HDFPersist/HDFdataset.cc
src/HDFPersist/HDFdataset.hxx
src/HDFPersist/HDFfile.cc
src/HDFPersist/HDFfile.hxx
src/HDFPersist/HDFgroup.cc
src/HDFPersist/HDFgroup.hxx
src/HDFPersist/HDFinternalObject.cc
src/HDFPersist/HDFinternalObject.hxx
src/HDFPersist/HDFobject.cc
src/HDFPersist/HDFobject.hxx
src/HDFPersist/hdfi.h

index 23434e63fb780e74bf8501cd13af2b52d104090e..134aca9d8ea3778671cbcd6396d30e22288f93d0 100644 (file)
 //  File   : HDFOI.hxx
 //  Module : SALOME
 //
-extern "C"
-{
 #include "HDFtypes.h"
-}
 
 #include "HDFattribute.hxx"
 #include "HDFfile.hxx"
index 5ed08fc32a5e2a6c0a361415c1b051c7bc2c8f6e..6124a16306900fb50fdb18af75ac74fd883f46fc 100644 (file)
 //  File   : HDFattribute.cc
 //  Module : SALOME
 //
-extern "C"
-{
 #include "hdfi.h"
-}
 #include "HDFexception.hxx"
 #include "HDFattribute.hxx"
 #include "HDFinternalObject.hxx"
index a6acbf1f8d02f7fb08ebd7bd0b746671241d7360..6d8bdae787371ebbfa9c027788631d0bc4184957 100644 (file)
 #ifndef HDFATTRIBUTE_HXX
 #define HDFATTRIBUTE_HXX
 
-extern "C"
-{
 #include "HDFtypes.h"
-}
 #include "HDFinternalObject.hxx"
 #include "HDFcontainerObject.hxx"
 
index 4936285f7f3f72f0672d991c156e5acf89325e09..b92d2df748a17294283eacc12447a2eed16a3c9c 100644 (file)
 //  File   : HDFcontainerObject.cc
 //  Module : SALOME
 //
-extern "C"
-{
 #include "hdfi.h"
-}
 #include "HDFcontainerObject.hxx"
 #include "HDFexception.hxx"
 
index 26bc6fdde94840d63f8c371e30ca71a7beb743d4..af2bbb43cafff696b37db2fcec062c1760818320 100644 (file)
 #ifndef HDFCONTAINEROBJECT_HXX
 #define HDFCONTAINEROBJECT_HXX
 
-extern "C"
-{
 #include "HDFtypes.h"
-}
 #include "HDFobject.hxx"
 #include "HDFinternalObject.hxx"
 #include "HDFexport.hxx"
index a7595bad7f23eb3b45b4c9d6aa2d978f1852bee2..d280f7ab95d5a1c25a6c1af5b14adb8fe9f31b24 100644 (file)
@@ -27,8 +27,6 @@
 #ifndef HDFCONVERT_HXX
 #define HDFCONVERT_HXX
 
-extern "C"
-{
 #include "HDFtypes.h"
 #ifndef WIN32
 #include <unistd.h>
@@ -40,7 +38,6 @@ extern "C"
 #include <sys/types.h>
 #include <sys/stat.h>
 #include <fcntl.h>
-}
 #include "HDFexport.hxx"
 #include "HDFcontainerObject.hxx"
 #include "HDFdataset.hxx"
index a0af78076af3dee8d38f2e027a9b31dcb595572e..e3ff8fe4565c7e5cc4463cc89300b9e27ed79a14 100644 (file)
 //  File   : HDFdataset.cc
 //  Module : SALOME
 //
-extern "C"
-{
 #include "hdfi.h"
 #include <string.h>
-}
 #include "HDFdataset.hxx"
 #include "HDFcontainerObject.hxx"
 #include "HDFexception.hxx"
index 96d69ebdfaed3db5b801a047de5f51e42be802fe..d85778dd596aa13e622c1dbc0761de0cc88ec598 100644 (file)
 #ifndef HDFDATASET_HXX
 #define HDFDATASET_HXX
 
-extern "C"
-{
 #include "HDFtypes.h"
-}
 #include "HDFinternalObject.hxx"
 #include "HDFcontainerObject.hxx"
 #include "HDFexport.hxx"
index a56b0164a520db93f611aed5fb63a32497ef8029..fe7af1d5df178d252d739b2513ec4d0b45a1f070 100644 (file)
@@ -24,8 +24,6 @@
 //  File   : HDFfile.cc
 //  Module : SALOME
 //
-extern "C"
-{
 #include "hdfi.h"
 #ifndef WIN32
 #include <unistd.h>
@@ -35,7 +33,6 @@ extern "C"
 #define access _access
 #endif
 #include <string.h>
-}
 #include <iostream>
 #include "HDFfile.hxx"
 #include "HDFexception.hxx"
index fd3cd04295f1f35517f525fcb1ee1d3077249ea6..de3e694e1683852a8184788b6b11e1c97b28521d 100644 (file)
 #ifndef HDFFILE_HXX
 #define HDFFILE_HXX
 
-extern "C"
-{
 #include "HDFtypes.h"
-}
 #include "HDFcontainerObject.hxx"
 #include "HDFexport.hxx"
 
index f8ffa2df3ee1545cc1b944c7cdc668e3bd299cec..ce3de1e80e7a12df8c63ee7e4519bf1a56b899f8 100644 (file)
 //  File   : HDFgroup.cc
 //  Module : SALOME
 //
-extern "C"
-{
 #include "hdfi.h"
 #include <string.h>
-}
 #include "HDFgroup.hxx"
 #include "HDFexception.hxx"
 
index 87f29416422e6748923ddf253330bbccd98a5fc1..ac137213f146d89a1da4ed7644777185719ca727 100644 (file)
 #ifndef HDFGROUP_HXX
 #define HDFGROUP_HXX
 
-extern "C"
-{
 #include "HDFtypes.h"
-}
 #include "HDFcontainerObject.hxx"
 #include "HDFexport.hxx"
 
index fa10958c12e49061aea2d4aaf30db9313c9ca550..d1b3345c07ef5aca08b1ca4b6b60346702e36654 100644 (file)
 //  File   : HDFinternalObject.cc
 //  Module : SALOME
 //
-extern "C"
-{
 #include "hdfi.h"
-}
 #include "HDFinternalObject.hxx"
 
 HDFinternalObject::HDFinternalObject(const char *name)
index 085248434d742ea6680cff5ea7770262bce7a541..97597260acaca2cb18c765cc79c9bcfc462dc8d4 100644 (file)
 #ifndef HDFINTERNALOBJECT_HXX
 #define HDFINTERNALOBJECT_HXX
 
-extern "C"
-{
 #include "HDFtypes.h"
-}
 #include "HDFobject.hxx"
 #include "HDFexport.hxx"
 
index d04bdea6a27dfa51fcebbfd5534f382fc5a161e7..c797182a72f3e76128172e71a7e7d738e24e4156 100644 (file)
 //  Module : SALOME
 //
 #include "HDFobject.hxx"
-extern "C"
-{
 #include "hdfi.h"
-}
 
 #include <cstring>
 #include <stdlib.h>
index 62c143345548b61707d314405a75c6878e718109..feb50e85fb32b8b0927285d835cfdcff726a8b85 100644 (file)
 #ifndef HDFOBJECT_HXX
 #define HDFOBJECT_HXX
 
-extern "C"
-{
 #include "HDFtypes.h"
-}
 #include "HDFexport.hxx"
 
 class HDFPERSIST_EXPORT HDFobject {
index 2be74616a4ee53a43c70c26aff2d73e31a131b3a..9c9e3c2fce5349e322c4d1535e6a6c9c3e8963c4 100644 (file)
@@ -33,6 +33,9 @@
 
 /* HDF C INTERFACE */
 
+#ifdef __cplusplus
+extern "C" {
+#endif
 /* File Interface */
 extern
 hdf_idt HDFfileCreate(char *name);
@@ -126,5 +129,8 @@ hdf_err HDFobjectIdentify(hdf_idt fid,const char *path,int i,char *name);
 
 extern
 hdf_err HDFobjectType(hdf_idt id, char *name, hdf_object_type *type);
+#ifdef __cplusplus
+}
+#endif
 
 #endif /* HDFI_H */