2 added 40 characters in body
source | link

C (gcc), 5353 52 bytes

Note the space after #endif.

n;main(){putchar(n+49);}
#if __LINE__>7
n=2;
#endif// 

Try it online!Try it online!

C (gcc), 53 bytes

n;main(){putchar(n+49);}
#if __LINE__>7
n=2;
#endif//

Try it online!

C (gcc), 53 52 bytes

Note the space after #endif.

n;main(){putchar(n+49);}
#if __LINE__>7
n=2;
#endif 

Try it online!

1
source | link

C (gcc), 53 bytes

n;main(){putchar(n+49);}
#if __LINE__>7
n=2;
#endif//

Try it online!