fix Issue 4841 - -inline wrecks certain nested structs causing error "*** is a nested function and cannot be accessed from ***"
Merge pull request #2329 from 9rnsr/fix4841

Issue 4841 - -inline wrecks certain nested structs causing error "*** is a nested function and cannot be accessed from ***"