{"action":"closed","issue":{"url":"https://api.github.com/repos/CollaboratingPlatypus/PetaPoco/issues/118","labels_url":"https://api.github.com/repos/CollaboratingPlatypus/PetaPoco/issues/118/labels{/name}","comments_url":"https://api.github.com/repos/CollaboratingPlatypus/PetaPoco/issues/118/comments","events_url":"https://api.github.com/repos/CollaboratingPlatypus/PetaPoco/issues/118/events","html_url":"https://github.com/CollaboratingPlatypus/PetaPoco/issues/118","id":4755496,"number":118,"title":"Conditional Compilation Bug - v4.x","user":{"login":"TheAjItator","id":1778362,"avatar_url":"https://avatars.githubusercontent.com/u/1778362?v=3","gravatar_id":"","url":"https://api.github.com/users/TheAjItator","html_url":"https://github.com/TheAjItator","followers_url":"https://api.github.com/users/TheAjItator/followers","following_url":"https://api.github.com/users/TheAjItator/following{/other_user}","gists_url":"https://api.github.com/users/TheAjItator/gists{/gist_id}","starred_url":"https://api.github.com/users/TheAjItator/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TheAjItator/subscriptions","organizations_url":"https://api.github.com/users/TheAjItator/orgs","repos_url":"https://api.github.com/users/TheAjItator/repos","events_url":"https://api.github.com/users/TheAjItator/events{/privacy}","received_events_url":"https://api.github.com/users/TheAjItator/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/CollaboratingPlatypus/PetaPoco/labels/investigate","name":"investigate","color":"fbca04"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2012-05-25T15:20:06Z","updated_at":"2015-12-12T23:13:49Z","closed_at":"2015-12-12T23:13:49Z","body":"The preprocessor directive for dynamic support in 4.x, and earlier, isn't working correctly.\n\nThe code has:\n```C#\n#if !PETAPOCO_NO_DYNAMIC\n```\nBut this isn't processed as you would think.\n\nA fix would be to use:\n```C#\n#if (!PETAPOCO_NO_DYNAMIC)\n```\n\nYou can see the issue if you debug into the file without setting PETAPOCO_NO_DYNAMIC and see it is acting as if it was set."}}