sharing: Replace ifdefs with #pragma once

3 jobs for sharing-g-declare-type in 10 minutes and 13 seconds (queued for 12 seconds)
Status Job ID Name Coverage
  Build
passed #40628
build

00:08:50

 
  Test
passed #40629
test

00:01:22

 
  Delivery
manual #40630
allowed to fail manual
packaging