Commits

Lisandro Dalcin committed 122841e

Fix symbol visibility in libpetiga

  • Participants
  • Parent commits 161b52b

Comments (0)

Files changed (2)

File src/petiga.c

   PetscFunctionReturn(0);
 }
 
+PETSC_EXTERN PetscErrorCode IGACreateSubComms1D(IGA,MPI_Comm[]);
+
 #undef  __FUNCT__
 #define __FUNCT__ "IGACreateSubComms1D"
 PetscErrorCode IGACreateSubComms1D(IGA iga,MPI_Comm subcomms[])
 
 #undef  __FUNCT__
 #define __FUNCT__ "IGASetUp_Stage1"
-PetscErrorCode IGASetUp_Stage1(IGA iga)
+static PetscErrorCode IGASetUp_Stage1(IGA iga)
 {
   PetscInt       i,dim;
   PetscInt       grid_sizes[3] = {1,1,1};
 
 #undef  __FUNCT__
 #define __FUNCT__ "IGASetUp_Stage2"
-PetscErrorCode IGASetUp_Stage2(IGA iga)
+static PetscErrorCode IGASetUp_Stage2(IGA iga)
 {
   PetscInt       i;
   PetscErrorCode ierr;
   PetscFunctionReturn(0);
 }
 
-extern PetscErrorCode IGASetUp_Basic(IGA);
-extern PetscErrorCode IGASetUp_View(IGA);
+PETSC_EXTERN PetscErrorCode IGASetUp_Basic(IGA);
+PETSC_EXTERN PetscErrorCode IGASetUp_View(IGA);
 
 #undef  __FUNCT__
 #define __FUNCT__ "IGASetUp_Basic"

File src/petigaio.c

 #include "petiga.h"
 #include "petigagrid.h"
 
-extern PetscErrorCode IGASetUp_Basic(IGA);
-static PetscErrorCode VecLoad_Binary_SkipHeader(Vec,PetscViewer);
+PETSC_EXTERN PetscErrorCode IGASetUp_Basic(IGA);
+static       PetscErrorCode VecLoad_Binary_SkipHeader(Vec,PetscViewer);
 
 #undef  __FUNCT__
 #define __FUNCT__ "IGALoad"