Arduino Error Expected unqualified-id before 're-interpret_cast'

    if(myChar == '' || myChar == '')

Here is the code on the line that the error message refers to. The compiler is complaining about two empty character constants at this line, and you have two empty character constants here. I don't understand how you can be in any doubt about what the problem is.

If you want to put a literal apostrophe inside a character constant then you need to escape it. This version compiles fine:

    if(myChar == '\'' || myChar == '\'')